fixing: transaction bill
This commit is contained in:
parent
fe3404db32
commit
6a2c535414
|
@ -78,7 +78,7 @@ export class PpobCallbackController {
|
||||||
);
|
);
|
||||||
//
|
//
|
||||||
} else {
|
} else {
|
||||||
if (response['status'] != 20) {
|
if (response['status'].toString() != '20') {
|
||||||
//TODO: UPDATE GAGAL
|
//TODO: UPDATE GAGAL
|
||||||
const updateTransaction =
|
const updateTransaction =
|
||||||
await this.transactionService.callbackOrderFailed(
|
await this.transactionService.callbackOrderFailed(
|
||||||
|
|
|
@ -1172,8 +1172,7 @@ export class TransactionService {
|
||||||
const coaExpense = await this.coaService.findByName(
|
const coaExpense = await this.coaService.findByName(
|
||||||
`${coaType[coaType.EXPENSE]}-SYSTEM`,
|
`${coaType[coaType.EXPENSE]}-SYSTEM`,
|
||||||
);
|
);
|
||||||
|
if (userData.partner != null) {
|
||||||
if (!userData.partner) {
|
|
||||||
//GET SALES
|
//GET SALES
|
||||||
supervisorData = await this.calculateCommission(
|
supervisorData = await this.calculateCommission(
|
||||||
supervisorData,
|
supervisorData,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user