Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli 2023-01-06 11:55:52 +07:00
commit 74bb978292

View File

@ -164,11 +164,14 @@ 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(
{