PurchaseAP Business Processes
Last Edit: December 1, 2017 the alpha360 team
The PurchaseAP Entity has the following BPs:
and
note: the PurchaseAP_Payment BPs are used for PurchaseAP Payments (with cash or/and check tables) and the PurchaseAP BPs are used for General PurchaseAP Debits and Credits. Calling information and documentation is provided for the PurchaseAP_Payment BPs - the PurchaseAP BPs follow the same structure and are NOT included in this documentation [you can find more information about these BP's in the Projects code].
This BP adds a bPurchaseAP_Payment record and a related bBusinessDocument record- and if needed - it adds records to the related bBusinessDocument_CashLine and/or bBusinessDocument_CheckLine table(s).
BP_PurchaseAP_Payment_add
BP_PurchaseAP_Payment_add(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bPurchaseAP is Record of bPurchaseAP, p_Array_BusinessDocument_CashLine, p_Array_BusinessDocument_CheckLine, LOCAL p_sUserPK is string, p_sReturnPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP modifies a bPurchaseAP_Payment record and its related bBusinessDocument record- and if needed - it adds/modifies/deletes records from the related bBusinessDocument_CashLine and/or bBusinessDocument_CheckLine table(s).
This BP can act on PurchaseAP_Payment Objects that have NOT been posted.
BP_PurchaseAP_Payment_modify
BP_PurchaseAP_Payment_modify(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bPurchaseAP is Record of bPurchaseAP, p_Array_BusinessDocument_CashLine, p_Array_BusinessDocument_CheckLine, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP deletes a bPurchaseAP_Payment record and its related bBusinessDocument record- and if needed - it deletes all the records from the related BusinessDocument_CashLine, BusinessDocument_CheckLine tables.
This BP can act on PurchaseAP_Payment Objects that have NOT been posted.
BP_PurchaseAP_Payment_delete
BP_PurchaseAP_Payment_delete(LOCAL p_sPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP posts a PurchaseAP_Payment Object to the ERP - see Purchase Transactions for more information about posting.
This BP can act on PurchaseAP_Payment Objects that have NOT been posted.
BP_PurchaseAP_Payment_Post
BP_PurchaseAP_Payment_Post(LOCAL p_sPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP unposts a PurchaseAP_Payment Object from the ERP - see Purchase Transactions for more information about posting.
This BP can act on PurchaseAP_Payment Objects that have been posted.
BP_PurchaseAP_Payment_unPost
BP_PurchaseAP_Payment_unPost(LOCAL p_sPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
next -> Open Source Implementation
Copyright 2017 - computerplus