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

This commit is contained in:
Fadli 2023-01-06 12:20:32 +07:00
commit c288a7fdd0

View File

@ -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(
{