Skip to content

Commit

Permalink
Fix to always delivery detail price
Browse files Browse the repository at this point in the history
  • Loading branch information
lamngockhuong committed Sep 20, 2022
1 parent bad8088 commit 9c29908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/kiotviet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const syncInvoice = async (invoice: any) => {
...data,
deliveryDetail: {
status: deliveryStatus,
price: invoice.invoiceDelivery?.price ? ghtkOrder?.fee_ship : undefined,
price: ghtkOrder?.fee_ship,
usingPriceCod: invoice.invoiceDelivery.usingPriceCod,
expectedDelivery: deliveryDate,
partnerDelivery: partnerDelivery
Expand All @@ -78,7 +78,7 @@ const syncInvoice = async (invoice: any) => {
...data,
deliveryDetail: {
status: deliveryStatus,
price: invoice.invoiceDelivery?.price ? vnpostOrder?.fee_ship : undefined,
price: vnpostOrder?.fee_ship,
usingPriceCod: invoice.invoiceDelivery.usingPriceCod,
expectedDelivery: deliveryDate,
partnerDelivery: partnerDelivery
Expand Down

0 comments on commit 9c29908

Please sign in to comment.