SalesAR Business Processes
Last Edit: December 1, 2017 the alpha360 team
The SalesAR Entity has the following BPs:
and
note: the SalesAR_Payment BPs are used for SalesAR Payments (with cash or/and check tables) and the SalesAR BPs are used for General SalesAR Debits and Credits. Calling information and documentation is provided for the SalesAR_Payment BPs - the SalesAR 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 bSalesAR record and a related bBusinessDocument record- and if needed - it adds records to the related bBusinessDocument_CashLine and/or bBusinessDocument_CheckLine table(s).
BP_SalesAR_Payment_add
BP_SalesAR_Payment_add(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bSalesAR is Record of bSalesAR, 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 bSalesAR 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 SalesAR Objects that have NOT been posted.
BP_SalesAR_Payment_modify
BP_SalesAR_Payment_modify(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bSalesAR is Record of bSalesAR, 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 bSalesAR 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 SalesAR Objects that have NOT been posted.
BP_SalesAR_Payment_delete
BP_SalesAR_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 SalesAR Object to the ERP - see Sales Transactions for more information about posting.
This BP can act on Sales Objects that have NOT been posted.
BP_SalesAR_Payment_Post
BP_SalesAR_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 SalesAR Object from the ERP - see Sales Transactions for more information about posting.
This BP can act on Sales Objects that have been posted.
BP_SalesAR_Payment_unPost
BP_SalesAR_Payment_unPost(LOCAL p_sPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
next -> Purchases (A/P)
Copyright 2017 - computerplus