Merged in afiqhamzah/fix/change-time-reference-of-online-transaction (pull request #217)
afiqhamzah/fix/change-time-reference-of-online-transaction
This commit is contained in:
@@ -376,7 +376,7 @@ class TransactionOnlineController extends Controller
|
||||
|
||||
try {
|
||||
|
||||
DB::connection('mysql7')->transaction(function () use ($norujukan, $gadai, $kodcaw, $current, $baki_hargajualan, $cawangan, $old_data, $lelong_tawarruq, $margin_semasa, $bayaran, $tempohbayar, $bill_id) {
|
||||
DB::connection('mysql7')->transaction(function () use ($norujukan, $gadai, $kodcaw, $current, $baki_hargajualan, $cawangan, $old_data, $lelong_tawarruq, $margin_semasa, $bayaran, $tempohbayar, $bill_id, $paid_at) {
|
||||
|
||||
$data = [
|
||||
'trans_type' => 'A',
|
||||
@@ -385,7 +385,7 @@ class TransactionOnlineController extends Controller
|
||||
'teller' => 'Online',
|
||||
'kodcaw' => $kodcaw,
|
||||
'duit_masuk' => $bayaran,
|
||||
'created_at' => $current,
|
||||
'created_at' => $paid_at,
|
||||
'bakiharga' => $baki_hargajualan,
|
||||
];
|
||||
|
||||
@@ -424,6 +424,7 @@ class TransactionOnlineController extends Controller
|
||||
'tempoh' => 0,
|
||||
'beza_tempoh' => 0,
|
||||
'margin_semasa' => 0,
|
||||
'tarikh_bayaran' => $paid_at,
|
||||
];
|
||||
|
||||
try {
|
||||
@@ -469,6 +470,7 @@ class TransactionOnlineController extends Controller
|
||||
'tempoh' => $gadai['tempoh'],
|
||||
'beza_tempoh' => $bilang_bln,
|
||||
'margin_semasa' => $margin_semasa,
|
||||
'tarikh_bayaran' => $paid_at,
|
||||
];
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user