Class DocPayment

    • Constructor Detail

      • DocPayment

        public DocPayment​(String AD_Client_ID,
                          String AD_Org_ID,
                          ConnectionProvider connectionProvider)
        Constructor
        Parameters:
        AD_Client_ID - AD_Client_ID
    • Method Detail

      • getBalance

        public BigDecimal getBalance()
        Get Source Currency Balance - always zero
        Specified by:
        getBalance in class AcctServer
        Returns:
        Zero (always balanced)
      • createFact

        public Fact createFact​(AcctSchema as,
                               ConnectionProvider conn,
                               Connection con,
                               VariablesSecureApp vars)
                        throws javax.servlet.ServletException
        Create Facts (the accounting logic) for STT, APP.
         
          Flow:
            1. Currency conversion variations
            2. Non manual DPs in settlement
               2.1 Cancelled
               2.2 Generated
            3. Manual DPs in settlement
               3.1 Transitory account
            4. Conceptos contables (manual sett and cancelation DP)
            5. Writeoff
            6. Bank in transit
         
         
        Specified by:
        createFact in class AcctServer
        Parameters:
        as - accounting schema
        Returns:
        Fact
        Throws:
        javax.servlet.ServletException
      • getSeqNo

        public String getSeqNo()
        Returns:
        the seqNo
      • setSeqNo

        public void setSeqNo​(String seqNo)
        Parameters:
        seqNo - the seqNo to set
      • getSettlementType

        public String getSettlementType()
        Returns:
        the settlementType
      • setSettlementType

        public void setSettlementType​(String settlementType)
        Parameters:
        settlementType - the settlementType to set
      • getSerialVersionUID

        public static long getSerialVersionUID()
        Returns:
        the serialVersionUID
      • getZERO

        public static BigDecimal getZERO()
        Returns:
        the zERO
      • getAccountBPartner

        public final Account getAccountBPartner​(String cBPartnerId,
                                                AcctSchema as,
                                                boolean isReceipt,
                                                String dpStatus,
                                                ConnectionProvider conn)
        Get the account for Accounting Schema
        Parameters:
        cBPartnerId - business partner id
        as - accounting schema
        Returns:
        Account
      • getAccountBankStatementLine

        public final Account getAccountBankStatementLine​(String strcBankstatementlineId,
                                                         AcctSchema as,
                                                         ConnectionProvider conn)
        Get the account for Accounting Schema
        Parameters:
        strcBankstatementlineId - Line
        as - accounting schema
        Returns:
        Account
      • getAccountCashLine

        public final Account getAccountCashLine​(String strcCashlineId,
                                                AcctSchema as,
                                                ConnectionProvider conn)
        Get the account for Accounting Schema
        Parameters:
        strcCashlineId - Line Id
        as - accounting schema
        Returns:
        Account