Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli
2022-12-08 16:05:22 +07:00

View File

@@ -441,6 +441,8 @@ export class TransactionService {
transactionData.destination = orderTransactionDto.destination;
transactionData.partner_trx_id = orderTransactionDto.trx_id;
transactionData.supplier_trx_id = trxId;
transactionData.balance_remaining =
coaAccount.amount - product_price.mark_up_price - costInventory;
await manager.insert(Transactions, transactionData);
await this.accountingTransaction({