Purchase Business Processes
Last Edit: December 1, 2017 the alpha360 team
The Purchase Entity has the following BPs:
Purchase Quotes, Orders, Shipments and Invoices are Purchase Entities
This BP adds a bPurchase record and a related bBusinessDocument record- and if needed - it adds records to the related bBusinessDocument_ProductLine and bBusinessDocument_TAXLine tables.
BP_Purchase_add
BP_Purchase_add(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bPurchase is Record of bPurchase, p_Array_BusinessDocument_ProductLine, p_Array_BusinessDocument_ExpenseLine , p_Array_BusinessDocument_TAXLine, p_Array_BusinessDocument_AdjustTAXLine, LOCAL p_sUserPK is string, p_sReturnPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP modifies a bPurchase record and its related bBusinessDocument record- and if needed - it adds/modifies/deletes records from the related bBusinessDocument_ProductLine and bBusinessDocument_TAXLine tables.
This BP can act on Purchase Objects that have NOT been posted.
BP_Purchase_modify
BP_Purchase_modify(LOCAL p_R_bBusinessDocument is Record of bBusinessDocument, LOCAL p_R_bPurchase is Record of bPurchase, p_Array_BusinessDocument_ProductLine, p_Array_BusinessDocument_ExpenseLine , p_Array_BusinessDocument_TAXLine, p_Array_BusinessDocument_AdjustTAXLine, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP deletes a bPurchase record and its related bBusinessDocument record- and if needed - it deletes all the records from the related bBusinessDocument_ProductLine and bBusinessDocument_TAXLine tables.
This BP can act on Purchase Objects that have NOT been posted.
BP_Purchase_delete
BP_Purchase_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 Purchase Object to the ERP - see Purchase Transactions for more information about posting.
This BP can act on Purchase Objects that have NOT been posted.
BP_Purchase_Post
BP_Purchase_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 Purchase Object from the ERP - see Purchase Transactions for more information about posting.
This BP can act on Purchase Objects that have been posted.
BP_Purchase_unPost
BP_Purchase_unPost(LOCAL p_sPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
next -> PurchaseAP BPs
Copyright 2017 - computerplus