This commit is contained in:
2025-12-02 20:01:07 +03:30
parent e43727f1c6
commit 40442686be
24 changed files with 420 additions and 490 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export class Order extends BaseEntity {
tax: number = 0;
@Property({ type: 'decimal', precision: 10, scale: 0, default: 0 })
deliveryFee: number = 0;
shipmentFee: number = 0;
@Property({ type: 'decimal', precision: 10, scale: 0 })
total!: number;
+1 -1
View File
@@ -55,7 +55,7 @@ export class OrdersService {
totalDiscount: cart.totalDiscount || 0,
subTotal: cart.subTotal || 0,
tax: cart.tax || 0,
deliveryFee: cart.deliveryFee || 0,
shipmentFee: cart.shipmentFee || 0,
total: cart.total || 0,
totalItems: cart.totalItems || 0,
status: OrderStatus.Pending,