File

projects/core/src/model/replenishment-order.model.ts

Index

Properties

Properties

active
active: boolean
Type : boolean
Optional
appliedOrderPromotions
appliedOrderPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
appliedProductPromotions
appliedProductPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
appliedVouchers
appliedVouchers: Voucher[]
Type : Voucher[]
Optional
calculated
calculated: boolean
Type : boolean
Optional
code
code: string
Type : string
Optional
costCenter
costCenter: CostCenter
Type : CostCenter
Optional
deliveryAddress
deliveryAddress: Address
Type : Address
Optional
deliveryCost
deliveryCost: Price
Type : Price
Optional
deliveryItemsQuantity
deliveryItemsQuantity: number
Type : number
Optional
deliveryMode
deliveryMode: DeliveryMode
Type : DeliveryMode
Optional
deliveryOrderGroups
deliveryOrderGroups: DeliveryOrderEntryGroup[]
Type : DeliveryOrderEntryGroup[]
Optional
description
description: string
Type : string
Optional
entries
entries: OrderEntry[]
Type : OrderEntry[]
Optional
expirationTime
expirationTime: string
Type : string
Optional
firstDate
firstDate: string
Type : string
Optional
guid
guid: string
Type : string
Optional
name
name: string
Type : string
Optional
net
net: boolean
Type : boolean
Optional
orderDiscounts
orderDiscounts: Price
Type : Price
Optional
paymentInfo
paymentInfo: PaymentDetails
Type : PaymentDetails
Optional
paymentStatus
paymentStatus: string
Type : string
Optional
paymentType
paymentType: PaymentType
Type : PaymentType
Optional
pickupItemsQuantity
pickupItemsQuantity: number
Type : number
Optional
pickupOrderGroups
pickupOrderGroups: PickupOrderEntryGroup[]
Type : PickupOrderEntryGroup[]
Optional
potentialOrderPromotions
potentialOrderPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
potentialProductPromotions
potentialProductPromotions: PromotionResult[]
Type : PromotionResult[]
Optional
productDiscounts
productDiscounts: Price
Type : Price
Optional
purchaseOrderNumber
purchaseOrderNumber: string
Type : string
Optional
replenishmentOrderCode
replenishmentOrderCode: string
Type : string
Optional
savedBy
savedBy: Principal
Type : Principal
Optional
saveTime
saveTime: string
Type : string
Optional
site
site: string
Type : string
Optional
store
store: string
Type : string
Optional
subTotal
subTotal: Price
Type : Price
Optional
totalDiscounts
totalDiscounts: Price
Type : Price
Optional
totalItems
totalItems: number
Type : number
Optional
totalPrice
totalPrice: Price
Type : Price
Optional
totalPriceWithTax
totalPriceWithTax: Price
Type : Price
Optional
totalTax
totalTax: Price
Type : Price
Optional
totalUnitCount
totalUnitCount: number
Type : number
Optional
trigger
trigger: Trigger
Type : Trigger
Optional
user
user: Principal
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',
}

result-matching ""

    No results matching ""