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