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 {
|
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 = [
|
$data = [
|
||||||
'trans_type' => 'A',
|
'trans_type' => 'A',
|
||||||
@@ -385,7 +385,7 @@ class TransactionOnlineController extends Controller
|
|||||||
'teller' => 'Online',
|
'teller' => 'Online',
|
||||||
'kodcaw' => $kodcaw,
|
'kodcaw' => $kodcaw,
|
||||||
'duit_masuk' => $bayaran,
|
'duit_masuk' => $bayaran,
|
||||||
'created_at' => $current,
|
'created_at' => $paid_at,
|
||||||
'bakiharga' => $baki_hargajualan,
|
'bakiharga' => $baki_hargajualan,
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -424,6 +424,7 @@ class TransactionOnlineController extends Controller
|
|||||||
'tempoh' => 0,
|
'tempoh' => 0,
|
||||||
'beza_tempoh' => 0,
|
'beza_tempoh' => 0,
|
||||||
'margin_semasa' => 0,
|
'margin_semasa' => 0,
|
||||||
|
'tarikh_bayaran' => $paid_at,
|
||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -469,6 +470,7 @@ class TransactionOnlineController extends Controller
|
|||||||
'tempoh' => $gadai['tempoh'],
|
'tempoh' => $gadai['tempoh'],
|
||||||
'beza_tempoh' => $bilang_bln,
|
'beza_tempoh' => $bilang_bln,
|
||||||
'margin_semasa' => $margin_semasa,
|
'margin_semasa' => $margin_semasa,
|
||||||
|
'tarikh_bayaran' => $paid_at,
|
||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user