fix: transaction service
This commit is contained in:
parent
890f82bfec
commit
ec6e8da63c
|
@ -448,7 +448,7 @@ export class TransactionService {
|
||||||
orderTransactionDto.productCode,
|
orderTransactionDto.productCode,
|
||||||
);
|
);
|
||||||
|
|
||||||
const product_price = await this.productHistoryPriceService.findOne(
|
let product_price = await this.productHistoryPriceService.findOne(
|
||||||
product.id,
|
product.id,
|
||||||
userData.partner?.id,
|
userData.partner?.id,
|
||||||
);
|
);
|
||||||
|
@ -528,6 +528,8 @@ export class TransactionService {
|
||||||
newProductPrice.product = product;
|
newProductPrice.product = product;
|
||||||
newProductPrice.partner = x.partner;
|
newProductPrice.partner = x.partner;
|
||||||
await this.productHistoryPriceService.create(newProductPrice);
|
await this.productHistoryPriceService.create(newProductPrice);
|
||||||
|
|
||||||
|
product_price = newProductPrice;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user