Merge branch 'development' into 'devops-staging'

Development

See merge request empatnusabangsa/ppob/ppob-backend!88
This commit is contained in:
ilham dwi pratama 2022-01-06 02:41:56 +00:00
commit 5b117976dc

View File

@ -528,7 +528,7 @@ export class TransactionService {
await this.productHistoryPriceService.updateEndDate(product.id);
listActivePrice.map(async (x) => {
let newProductPrice = new ProductHistoryPrice();
const newProductPrice = new ProductHistoryPrice();
newProductPrice.id = uuid.v4();
newProductPrice.type = x.type;
@ -613,6 +613,7 @@ export class TransactionService {
await manager.save(transactionData);
if (statusApproval === 'accept') {
await this.accountingTransaction({
createTransaction: false,
transactionalEntityManager: manager,
@ -637,6 +638,7 @@ export class TransactionService {
},
],
});
}
});
return transactionData;
@ -1020,6 +1022,7 @@ export class TransactionService {
if (startDate && endDate) {
filter['start'] = Between(new Date(startDate), new Date(endDate));
}
const baseQuery = this.transactionRepository.findAndCount({
skip: page * (pageSize || 10),
take: pageSize || 10,
@ -1028,6 +1031,7 @@ export class TransactionService {
createdAt: 'DESC',
},
});
return baseQuery;
}