Class PosOrderModel

    • Constructor Detail

      • PosOrderModel

        public PosOrderModel​(Properties ctx,
                             int C_Order_ID,
                             String trxName,
                             MPOS pos)
    • Method Detail

      • setBPartner

        public void setBPartner​(MBPartner partner)
        Description copied from class: MOrder
        Set Business Partner Defaults & Details. SOTrx should be set.
        Overrides:
        setBPartner in class MOrder
        Parameters:
        partner - business partner
      • deleteOrder

        public boolean deleteOrder()
        Delete order from database
      • deleteLine

        public void deleteLine​(int C_OrderLine_ID)
        to erase the lines from order
      • processOrder

        public boolean processOrder()
        Process Order
      • payCash

        public boolean payCash​(BigDecimal amt)
      • reload

        public void reload()
      • getCreditCards

        public ValueNamePair[] getCreditCards​(BigDecimal amt)
        Duplicated from MPayment Get Accepted Credit Cards for amount
        Parameters:
        amt - trx amount
        Returns:
        credit cards
      • getCreditCardName

        public String getCreditCardName​(String CreditCardType)
        Duplicated from MPayment Get Name of Credit Card
        Parameters:
        CreditCardType - credit card type
        Returns:
        Name