projects/core/src/model/replenishment-order.model.ts
Properties |
|
active |
active:
|
Type : boolean
|
Optional |
appliedOrderPromotions |
appliedOrderPromotions:
|
Type : PromotionResult[]
|
Optional |
appliedProductPromotions |
appliedProductPromotions:
|
Type : PromotionResult[]
|
Optional |
appliedVouchers |
appliedVouchers:
|
Type : Voucher[]
|
Optional |
calculated |
calculated:
|
Type : boolean
|
Optional |
code |
code:
|
Type : string
|
Optional |
costCenter |
costCenter:
|
Type : CostCenter
|
Optional |
deliveryAddress |
deliveryAddress:
|
Type : Address
|
Optional |
deliveryCost |
deliveryCost:
|
Type : Price
|
Optional |
deliveryItemsQuantity |
deliveryItemsQuantity:
|
Type : number
|
Optional |
deliveryMode |
deliveryMode:
|
Type : DeliveryMode
|
Optional |
deliveryOrderGroups |
deliveryOrderGroups:
|
Type : DeliveryOrderEntryGroup[]
|
Optional |
description |
description:
|
Type : string
|
Optional |
entries |
entries:
|
Type : OrderEntry[]
|
Optional |
expirationTime |
expirationTime:
|
Type : string
|
Optional |
firstDate |
firstDate:
|
Type : string
|
Optional |
guid |
guid:
|
Type : string
|
Optional |
name |
name:
|
Type : string
|
Optional |
net |
net:
|
Type : boolean
|
Optional |
orderDiscounts |
orderDiscounts:
|
Type : Price
|
Optional |
paymentInfo |
paymentInfo:
|
Type : PaymentDetails
|
Optional |
paymentStatus |
paymentStatus:
|
Type : string
|
Optional |
paymentType |
paymentType:
|
Type : PaymentType
|
Optional |
pickupItemsQuantity |
pickupItemsQuantity:
|
Type : number
|
Optional |
pickupOrderGroups |
pickupOrderGroups:
|
Type : PickupOrderEntryGroup[]
|
Optional |
potentialOrderPromotions |
potentialOrderPromotions:
|
Type : PromotionResult[]
|
Optional |
potentialProductPromotions |
potentialProductPromotions:
|
Type : PromotionResult[]
|
Optional |
productDiscounts |
productDiscounts:
|
Type : Price
|
Optional |
purchaseOrderNumber |
purchaseOrderNumber:
|
Type : string
|
Optional |
replenishmentOrderCode |
replenishmentOrderCode:
|
Type : string
|
Optional |
savedBy |
savedBy:
|
Type : Principal
|
Optional |
saveTime |
saveTime:
|
Type : string
|
Optional |
site |
site:
|
Type : string
|
Optional |
store |
store:
|
Type : string
|
Optional |
subTotal |
subTotal:
|
Type : Price
|
Optional |
totalDiscounts |
totalDiscounts:
|
Type : Price
|
Optional |
totalItems |
totalItems:
|
Type : number
|
Optional |
totalPrice |
totalPrice:
|
Type : Price
|
Optional |
totalPriceWithTax |
totalPriceWithTax:
|
Type : Price
|
Optional |
totalTax |
totalTax:
|
Type : Price
|
Optional |
totalUnitCount |
totalUnitCount:
|
Type : number
|
Optional |
trigger |
trigger:
|
Type : Trigger
|
Optional |
user |
user:
|
Type : Principal
|
Optional |
import { Address } from './address.model';
import {
DeliveryOrderEntryGroup,
PaymentDetails,
PaymentType,
Principal,
PromotionResult,
Voucher,
} from './cart.model';
import { PaginationModel, SortModel } from './misc.model';
import { DeliveryMode, OrderEntry, PickupOrderEntryGroup } from './order.model';
import { CostCenter } from './org-unit.model';
import { Price } from './product.model';
export interface ReplenishmentOrder {
active?: boolean;
appliedOrderPromotions?: PromotionResult[];
appliedProductPromotions?: PromotionResult[];
appliedVouchers?: Voucher[];
calculated?: boolean;
code?: string;
costCenter?: CostCenter;
deliveryAddress?: Address;
deliveryCost?: Price;
deliveryItemsQuantity?: number;
deliveryMode?: DeliveryMode;
deliveryOrderGroups?: DeliveryOrderEntryGroup[];
description?: string;
entries?: OrderEntry[];
expirationTime?: string;
firstDate?: string;
guid?: string;
name?: string;
net?: boolean;
orderDiscounts?: Price;
paymentInfo?: PaymentDetails;
paymentStatus?: string;
paymentType?: PaymentType;
pickupItemsQuantity?: number;
pickupOrderGroups?: PickupOrderEntryGroup[];
potentialOrderPromotions?: PromotionResult[];
potentialProductPromotions?: PromotionResult[];
productDiscounts?: Price;
purchaseOrderNumber?: string;
replenishmentOrderCode?: string;
saveTime?: string;
savedBy?: Principal;
site?: string;
store?: string;
subTotal?: Price;
totalDiscounts?: Price;
totalItems?: number;
totalPrice?: Price;
totalPriceWithTax?: Price;
totalTax?: Price;
totalUnitCount?: number;
trigger?: Trigger;
user?: Principal;
}
export interface ReplenishmentOrderList {
replenishmentOrders?: ReplenishmentOrder[];
pagination?: PaginationModel;
sorts?: SortModel[];
}
export interface Trigger {
activationTime?: string;
displayTimeTable?: string;
}
export interface ScheduleReplenishmentForm {
daysOfWeek?: DaysOfWeek[];
nthDayOfMonth?: string;
numberOfDays?: string;
numberOfWeeks?: string;
recurrencePeriod?: string;
replenishmentStartDate?: string;
}
export enum DaysOfWeek {
MONDAY = 'MONDAY',
TUESDAY = 'TUESDAY',
WEDNESDAY = 'WEDNESDAY',
THURSDAY = 'THURSDAY',
FRIDAY = 'FRIDAY',
SATURDAY = 'SATURDAY',
SUNDAY = 'SUNDAY',
}
export const recurrencePeriod = {
DAILY: 'DAILY',
WEEKLY: 'WEEKLY',
MONTHLY: 'MONTHLY',
};
export enum ORDER_TYPE {
PLACE_ORDER = 'PLACE_ORDER',
SCHEDULE_REPLENISHMENT_ORDER = 'SCHEDULE_REPLENISHMENT_ORDER',
}