fixing: transaction bill

This commit is contained in:
ilham 2022-05-18 22:23:09 +07:00
parent fe3404db32
commit 6a2c535414
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,7 @@ export class PpobCallbackController {
);
//
} else {
if (response['status'] != 20) {
if (response['status'].toString() != '20') {
//TODO: UPDATE GAGAL
const updateTransaction =
await this.transactionService.callbackOrderFailed(

View File

@ -1172,8 +1172,7 @@ export class TransactionService {
const coaExpense = await this.coaService.findByName(
`${coaType[coaType.EXPENSE]}-SYSTEM`,
);
if (!userData.partner) {
if (userData.partner != null) {
//GET SALES
supervisorData = await this.calculateCommission(
supervisorData,