RS - platform dependent record set typepublic class PrcPurchaseInvoiceSave<RS> extends APrcAccDocFullSave<RS,PurchaseInvoice>
Process that saves vendor invoice.
| Constructor and Description |
|---|
PrcPurchaseInvoiceSave() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCheckIsReadyToAccount(Map<String,Object> pReqVars,
PurchaseInvoice pEntity,
org.beigesoft.model.IRequestData pRequestData)
Additional check document for ready to account (make acc.entries).
|
void |
calculateTotalPayment(Map<String,Object> pReqVars,
PurchaseInvoice pEntity)
Calculate Total Payment.
|
void |
checkOtherFraudUpdate(Map<String,Object> pReqVars,
PurchaseInvoice pEntity,
org.beigesoft.model.IRequestData pRequestData,
PurchaseInvoice pOldEntity)
Check other fraud update e.g.
|
void |
makeFirstPrepareForSave(Map<String,Object> pReqVars,
PurchaseInvoice pEntity,
org.beigesoft.model.IRequestData pRequestData)
Make save preparations before insert/update block if it's need.
|
void |
makeOtherEntries(Map<String,Object> pReqVars,
PurchaseInvoice pEntity,
org.beigesoft.model.IRequestData pRequestData,
boolean pIsNew)
Make other entries include reversing if it's need when save.
|
getSrvUseMaterialEntry, setSrvUseMaterialEntrygetSrvCogsEntry, getSrvWarehouseEntry, setSrvCogsEntry, setSrvWarehouseEntrygetSrvAccEntry, getSrvAccSettings, getSrvI18n, getSrvOrm, process, setSrvAccEntry, setSrvAccSettings, setSrvI18n, setSrvOrmpublic final void makeFirstPrepareForSave(Map<String,Object> pReqVars, PurchaseInvoice pEntity, org.beigesoft.model.IRequestData pRequestData) throws Exception
Make save preparations before insert/update block if it's need.
makeFirstPrepareForSave in class APrcAccDocSave<RS,PurchaseInvoice>pReqVars - additional parampEntity - entitypRequestData - Request DataException - - an exceptionpublic final void makeOtherEntries(Map<String,Object> pReqVars, PurchaseInvoice pEntity, org.beigesoft.model.IRequestData pRequestData, boolean pIsNew) throws Exception
Make other entries include reversing if it's need when save.
makeOtherEntries in class APrcAccDocSave<RS,PurchaseInvoice>pReqVars - additional parampEntity - entitypRequestData - Request DatapIsNew - if entity was newException - - an exceptionpublic final void checkOtherFraudUpdate(Map<String,Object> pReqVars, PurchaseInvoice pEntity, org.beigesoft.model.IRequestData pRequestData, PurchaseInvoice pOldEntity) throws Exception
Check other fraud update e.g. prevent change completed unaccounted manufacturing process.
checkOtherFraudUpdate in class APrcAccDocSave<RS,PurchaseInvoice>pReqVars - additional parampEntity - entitypRequestData - Request DatapOldEntity - old saved entityException - - an exceptionpublic final void addCheckIsReadyToAccount(Map<String,Object> pReqVars, PurchaseInvoice pEntity, org.beigesoft.model.IRequestData pRequestData) throws Exception
Additional check document for ready to account (make acc.entries).
addCheckIsReadyToAccount in class APrcAccDocSave<RS,PurchaseInvoice>pReqVars - additional parampEntity - entitypRequestData - Request DataException - - an exception if don'tCopyright © 2016–2018. All rights reserved.