Business Processes for the Party Entity
Last Edit: January 30, 2018 the alpha360 team
The Party Entity has the following basic BPs:
Since the Party Entity can have many different roles (Customer, Supplier, Person etc.) the above BPs affect more than one table.
An Object is a record or a set of records (in one or more tables) that "inherits the structure" of an Entity
This BP adds a gParty record and - if needed - adds gPerson, sCustomer, pSupplier and hEmloyee records to the database.
BP_Party_add
BP_Party_add(LOCAL p_R_gParty is Record of gParty, LOCAL p_R_gPerson is Record of gPerson, LOCAL p_R_sCustomer is Record of sCustomer, LOCAL p_R_pSupplier is Record of pSupplier, LOCAL p_R_hEmployee is Record of hEmployee, LOCAL p_sUserPK is string, p_sReturnPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP modifies a gParty record and - if needed - adds, modifies or deletes gPerson, sCustomer, pSupplier and hEmloyee records from the database.
BP_Party_modify
BP_Party_modify(LOCAL p_R_gParty is Record of gParty, LOCAL p_R_gPerson is Record of gPerson, LOCAL p_R_sCustomer is Record of sCustomer, LOCAL p_R_pSupplier is Record of pSupplier, LOCAL p_R_hEmployee is Record of hEmployee, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP deletes a gParty record and - if needed - deletes gPerson, sCustomer, pSupplier and hEmloyee records from the database.
BP_Party_delete
BP_Party_delete(LOCAL p_sPartyPK is string, LOCAL p_sUserPK is string, p_sErrorMessage is string)
IF true then COMMIT ELSE ROLLBACK
This BP gets a gParty record by its PK and fills the record buffer.
BP_Party_get
BP_Party_get(LOCAL p_sPartyPK is string, p_sErrorMessage is string)
Just a simple HReadSeekFirst()
next -> Inventory
Copyright 2017/18 - computerplus