- push logs distribute saldo admin
This commit is contained in:
parent
1ea59d2254
commit
dfc4e6b688
|
@ -163,12 +163,13 @@ export class TransactionService {
|
|||
HttpStatus.NOT_ACCEPTABLE,
|
||||
);
|
||||
}
|
||||
|
||||
console.log('suppliercodedist', supplier.code);
|
||||
// GET COA
|
||||
const coaBudget = await this.coaService.findByName(
|
||||
`${coaType[coaType.BUDGET]}-${supplier.code}`,
|
||||
);
|
||||
|
||||
console.log('coabudgetdist', coaBudget.amount);
|
||||
console.log('amounttotaldist', distributeTransactionDto.amount);
|
||||
if (coaBudget.amount < distributeTransactionDto.amount) {
|
||||
throw new HttpException(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user