Commit 3451d94d445fad31f1ac627ce17a67cab2e73c23

Authored by Adhidarma Hadiwinoto
1 parent d5dec1a394
Exists in master

supplier_ending_balance

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

... ... @@ -16,7 +16,8 @@ function buy(task) {
16 16 pull.report({
17 17 trx_id: task.trx_id,
18 18 rc: '14',
19   - message: `GAGAL karena nomor tujuan ${task.destination} adalah nomor ganjil`
  19 + message: `GAGAL karena nomor tujuan ${task.destination} adalah nomor ganjil`,
  20 + balance: config.supplier_ending_balance
20 21 });
21 22 }
22 23 else {
... ... @@ -25,7 +26,8 @@ function buy(task) {
25 26 rc: '00',
26 27 sn: moment().format('YYYYMMDDHHmmssSSS'),
27 28 message: `BERHASIL karena nomor tujuan ${task.destination} adalah nomor genap`,
28   - amount: config.supplier_price ? config.supplier_price[task.product] : null
  29 + amount: config.supplier_price ? config.supplier_price[task.product] : null,
  30 + balance: config.supplier_ending_balance
29 31 });
30 32 }
31 33