Skip to content

Commit

Permalink
feat(com-pwa): carType/ladingType
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and alimd committed Mar 6, 2023
1 parent 42c91c8 commit 94a2e96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions core/type/src/customer-order-management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import type {StringifyableRecord} from './type-helper.js';

// -- Const value --

export const shipmentTypeCS = ['x', 'y'] as const;
export const carTypeCS = ['x', 'y'] as const;
export const timePeriodCS = ['1_2w', '2_3w', '3_4w'] as const;
export const ladingTypeCS = ['hand', 'pallet'] as const;
export const carTypeCS = ['nissan', 'oneWheel', 'tenWheel', 'trolley'] as const;
export const carTypePriceCS = [110_000, 140_000, 170_000, 200_000] as const;
export const timePeriodCS = ['auto', '1_2w', '2_3w', '3_4w'] as const;
export const discountTypeCS = ['number', 'percent'] as const;
export const orderStatusCS = [
'draft',
Expand Down Expand Up @@ -133,7 +134,8 @@ export interface OrderShippingInfo extends StringifyableRecord {
recipientName: string;
recipientNationalCode: string;
address: string;
shipmentType: (typeof shipmentTypeCS)[number];
description: string,
ladingType: (typeof ladingTypeCS)[number];
carType: (typeof carTypeCS)[number];
timePeriod: (typeof timePeriodCS)[number];
}
Expand Down
6 changes: 3 additions & 3 deletions uniquely/com-pwa/src/ui/page/404.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ export class AlwatrPage404 extends UnresolvedMixin(LocalizeMixin(SignalMixin(Alw
recipientName: 'ali',
recipientNationalCode: '0934614566',
address: 'Mashhad, 29 dey, koche 29',
shipmentType: 'x',
carType: 'y',
ladingType: 'pallet',
carType: 'tenWheel',
timePeriod: '1_2w',
},

discountType: 'number',
totalPrice: 1000000,
shippingPrice: 1100000,
ladingPrice: 1100000,
finalPrice: 900000,
discount: 0,
});
Expand Down

0 comments on commit 94a2e96

Please sign in to comment.