- push logs distribute saldo admin
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user