RS - platform dependent record set typepublic class PrcPurchaseReturnLineSave<RS> extends Object implements org.beigesoft.service.IEntityProcessor<PurchaseReturnLine,Long>
Service that save PurchaseReturnLine into DB.
| Constructor and Description |
|---|
PrcPurchaseReturnLineSave() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustInvoiceLns(Map<String,Object> pReqVars,
PurchaseReturn pItsOwner,
List<PurchaseInvoiceServiceLine> pTacCatTotLns,
AccSettings pAs)
Adjust invoice lines totals/subtotals/cost for invoice basis.
|
PurchaseReturnTaxLine |
findCreateTaxLine(Map<String,Object> pReqVars,
List<PurchaseReturnTaxLine> pTaxLnsWas,
List<PurchaseReturnTaxLine> pTaxLnsNew,
Long pTaxId)
Find in old/new lines or create tax line.
|
ISrvAccSettings |
getSrvAccSettings()
Getter for srvAccSettings.
|
org.beigesoft.service.ISrvDatabase<RS> |
getSrvDatabase()
Geter for srvDatabase.
|
org.beigesoft.service.ISrvI18n |
getSrvI18n()
Getter for srvI18n.
|
org.beigesoft.service.ISrvNumberToString |
getSrvNumberToString()
Getter for srvNumberToString.
|
org.beigesoft.service.ISrvOrm<RS> |
getSrvOrm()
Getter for srvOrm.
|
ISrvDrawItemEntry<UseMaterialEntry> |
getSrvUseMaterialEntry()
Getter for srvUseMaterialEntry.
|
ISrvWarehouseEntry |
getSrvWarehouseEntry()
Geter for srvWarehouseEntry.
|
String |
lazyGetQueryInvTot()
Lazy Get query invoice totals.
|
String |
lazyGetQueryPurchaseReturnLineTaxes()
Lazy Get queryPurchaseReturnLineTaxes.
|
String |
lazyGetQuPurchRetSalTaxInvBas()
Lazy Get queryPurchRetSalTaxInvBas.
|
String |
lazyGetQuPurchRetSalTaxItBasAggr()
Lazy Get queryPurchRetSalTaxItBasAggr.
|
String |
loadString(String pFileName)
Load string file (usually SQL query).
|
void |
makeItl(Map<String,Object> pReqVars,
PurchaseReturnTaxLine pItl,
PurchaseInvoiceServiceLine pInvLn,
boolean pIsItemBasis)
Makes invoice tax line.
|
PurchaseInvoiceServiceLine |
makeLine(List<PurchaseInvoiceServiceLine> pInvLns,
Long pIlId,
Long pCatId,
Long pTaxId,
Double pPercent,
AccSettings pAs)
Make invoice line that stores values.
|
String |
prn(Map<String,Object> pReqVars,
BigDecimal pVal)
Simple delegator to print price.
|
String |
prnc(Map<String,Object> pReqVars,
BigDecimal pVal)
Simple delegator to print cost.
|
String |
prnq(Map<String,Object> pReqVars,
BigDecimal pVal)
Simple delegator to print quantity.
|
PurchaseReturnLine |
process(Map<String,Object> pReqVars,
PurchaseReturnLine pEntity,
org.beigesoft.model.IRequestData pRequestData)
Process entity request.
|
void |
setQueryInvTot(String pQueryInvTot)
Setter for queryInvTot.
|
void |
setQueryPurchaseReturnLineTaxes(String pQueryPurchaseReturnLineTaxes)
Setter for queryPurchaseReturnLineTaxes.
|
void |
setQueryPurchRetSalTaxInvBas(String pQueryPurchRetSalTaxInvBas)
Setter for queryPurchRetSalTaxInvBas.
|
void |
setQueryPurchRetSalTaxItBasAggr(String pQueryPurchRetSalTaxItBasAggr)
Setter for queryPurchRetSalTaxItBasAggr.
|
void |
setSrvAccSettings(ISrvAccSettings pSrvAccSettings)
Setter for srvAccSettings.
|
void |
setSrvDatabase(org.beigesoft.service.ISrvDatabase<RS> pSrvDatabase)
Setter for srvDatabase.
|
void |
setSrvI18n(org.beigesoft.service.ISrvI18n pSrvI18n)
Setter for srvI18n.
|
void |
setSrvNumberToString(org.beigesoft.service.ISrvNumberToString pSrvNumberToString)
Setter for srvNumberToString.
|
void |
setSrvOrm(org.beigesoft.service.ISrvOrm<RS> pSrvOrm)
Setter for srvOrm.
|
void |
setSrvUseMaterialEntry(ISrvDrawItemEntry<UseMaterialEntry> pSrvUseMaterialEntry)
Setter for srvUseMaterialEntry.
|
void |
setSrvWarehouseEntry(ISrvWarehouseEntry pSrvWarehouseEntry)
Setter for srvWarehouseEntry.
|
void |
updateTaxLines(Map<String,Object> pReqVars,
PurchaseReturn pItsOwner,
boolean pIsTaxable,
boolean pIsItemBasis,
boolean pIsAggrOnlyRate,
AccSettings pAs,
RoundingMode pRm)
Update invoice Tax Lines.
|
public final PurchaseReturnLine process(Map<String,Object> pReqVars, PurchaseReturnLine pEntity, org.beigesoft.model.IRequestData pRequestData) throws Exception
Process entity request.
process in interface org.beigesoft.service.IEntityProcessor<PurchaseReturnLine,Long>pReqVars - additional param, e.g. return this line's
document in "nextEntity" for farther processpRequestData - Request DatapEntity - Entity to processException - - an exceptionpublic final void updateTaxLines(Map<String,Object> pReqVars, PurchaseReturn pItsOwner, boolean pIsTaxable, boolean pIsItemBasis, boolean pIsAggrOnlyRate, AccSettings pAs, RoundingMode pRm) throws Exception
Update invoice Tax Lines.
pReqVars - additional parampItsOwner - PurchaseReturnpIsTaxable - Is TaxablepIsItemBasis - Is Item BasispIsAggrOnlyRate - Is Aggregate/Only RatepAs - Acc.settingspRm - tax rounding modeException - - an exceptionpublic final void adjustInvoiceLns(Map<String,Object> pReqVars, PurchaseReturn pItsOwner, List<PurchaseInvoiceServiceLine> pTacCatTotLns, AccSettings pAs) throws Exception
Adjust invoice lines totals/subtotals/cost for invoice basis.
pReqVars - additional parampItsOwner - invoicepTacCatTotLns - tax category totals linespAs - ASException - an Exceptionpublic final PurchaseReturnTaxLine findCreateTaxLine(Map<String,Object> pReqVars, List<PurchaseReturnTaxLine> pTaxLnsWas, List<PurchaseReturnTaxLine> pTaxLnsNew, Long pTaxId)
Find in old/new lines or create tax line.
pReqVars - additional parampTaxLnsWas - lines waspTaxLnsNew - lines newpTaxId - tax IDpublic final PurchaseInvoiceServiceLine makeLine(List<PurchaseInvoiceServiceLine> pInvLns, Long pIlId, Long pCatId, Long pTaxId, Double pPercent, AccSettings pAs)
Make invoice line that stores values.
pInvLns - linespIlId - line IDpCatId - tax category IDpTaxId - tax IDpPercent - tax ratepAs - ASpublic final void makeItl(Map<String,Object> pReqVars, PurchaseReturnTaxLine pItl, PurchaseInvoiceServiceLine pInvLn, boolean pIsItemBasis) throws Exception
Makes invoice tax line.
pReqVars - additional parampItl - PurchaseReturnTaxLinepInvLn - inventory linepIsItemBasis - Is Item BasisException - an Exceptionpublic final String lazyGetQueryPurchaseReturnLineTaxes() throws Exception
Lazy Get queryPurchaseReturnLineTaxes.
Exception - - an exceptionpublic final String lazyGetQuPurchRetSalTaxItBasAggr() throws Exception
Lazy Get queryPurchRetSalTaxItBasAggr.
Exception - - an exceptionpublic final String lazyGetQuPurchRetSalTaxInvBas() throws Exception
Lazy Get queryPurchRetSalTaxInvBas.
Exception - - an exceptionpublic final String lazyGetQueryInvTot() throws Exception
Lazy Get query invoice totals.
Exception - - an exceptionpublic final String loadString(String pFileName) throws IOException
Load string file (usually SQL query).
pFileName - file nameIOException - - IO exceptionpublic final String prn(Map<String,Object> pReqVars, BigDecimal pVal)
Simple delegator to print price.
pReqVars - additional parampVal - valuepublic final String prnc(Map<String,Object> pReqVars, BigDecimal pVal)
Simple delegator to print cost.
pReqVars - additional parampVal - valuepublic final String prnq(Map<String,Object> pReqVars, BigDecimal pVal)
Simple delegator to print quantity.
pReqVars - additional parampVal - valuepublic final org.beigesoft.service.ISrvI18n getSrvI18n()
Getter for srvI18n.
public final void setSrvI18n(org.beigesoft.service.ISrvI18n pSrvI18n)
Setter for srvI18n.
pSrvI18n - referencepublic final ISrvWarehouseEntry getSrvWarehouseEntry()
Geter for srvWarehouseEntry.
public final void setSrvWarehouseEntry(ISrvWarehouseEntry pSrvWarehouseEntry)
Setter for srvWarehouseEntry.
pSrvWarehouseEntry - referencepublic final ISrvDrawItemEntry<UseMaterialEntry> getSrvUseMaterialEntry()
Getter for srvUseMaterialEntry.
public final void setSrvUseMaterialEntry(ISrvDrawItemEntry<UseMaterialEntry> pSrvUseMaterialEntry)
Setter for srvUseMaterialEntry.
pSrvUseMaterialEntry - referencepublic final void setQueryPurchaseReturnLineTaxes(String pQueryPurchaseReturnLineTaxes)
Setter for queryPurchaseReturnLineTaxes.
pQueryPurchaseReturnLineTaxes - referencepublic final org.beigesoft.service.ISrvDatabase<RS> getSrvDatabase()
Geter for srvDatabase.
public final void setSrvDatabase(org.beigesoft.service.ISrvDatabase<RS> pSrvDatabase)
Setter for srvDatabase.
pSrvDatabase - referencepublic final org.beigesoft.service.ISrvOrm<RS> getSrvOrm()
Getter for srvOrm.
public final void setSrvOrm(org.beigesoft.service.ISrvOrm<RS> pSrvOrm)
Setter for srvOrm.
pSrvOrm - referencepublic final ISrvAccSettings getSrvAccSettings()
Getter for srvAccSettings.
public final void setSrvAccSettings(ISrvAccSettings pSrvAccSettings)
Setter for srvAccSettings.
pSrvAccSettings - referencepublic final org.beigesoft.service.ISrvNumberToString getSrvNumberToString()
Getter for srvNumberToString.
public final void setSrvNumberToString(org.beigesoft.service.ISrvNumberToString pSrvNumberToString)
Setter for srvNumberToString.
pSrvNumberToString - referencepublic final void setQueryPurchRetSalTaxItBasAggr(String pQueryPurchRetSalTaxItBasAggr)
Setter for queryPurchRetSalTaxItBasAggr.
pQueryPurchRetSalTaxItBasAggr - referencepublic final void setQueryPurchRetSalTaxInvBas(String pQueryPurchRetSalTaxInvBas)
Setter for queryPurchRetSalTaxInvBas.
pQueryPurchRetSalTaxInvBas - referencepublic final void setQueryInvTot(String pQueryInvTot)
Setter for queryInvTot.
pQueryInvTot - referenceCopyright © 2016–2018. All rights reserved.