- add logger for distrbute saldo
This commit is contained in:
parent
7c7c811b52
commit
bc7c5d71ba
|
@ -164,14 +164,11 @@ export class TransactionService {
|
|||
);
|
||||
}
|
||||
|
||||
console.log('suppliercodeini', supplier.code);
|
||||
// GET COA
|
||||
const coaBudget = await this.coaService.findByName(
|
||||
`${coaType[coaType.BUDGET]}-${supplier.code}`,
|
||||
);
|
||||
|
||||
console.log('coabudgetamount', coaBudget.amount);
|
||||
console.log('distributeamount',distributeTransactionDto.amount);
|
||||
if (coaBudget.amount < distributeTransactionDto.amount) {
|
||||
throw new HttpException(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user