T - invoice typeL - invoice line typeTL - invoice tax line typeLTL - invoice line's tax line typeRS - platform dependent record set typepublic class UtlInvLine<RS,T extends IInvoice,L extends IInvoiceLine<T>,TL extends AInvTxLn<T>,LTL extends ALineTxLn<T,L>> extends Object implements IInvLnTxMeth<T,L,LTL>
Utility for purchase/sales invoice line. It's final assembly dedicated to concrete invoice line type. Code in base utility is shared (there is only instance in memory).
| Constructor and Description |
|---|
UtlInvLine() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjInvLnsUpdTots(Map<String,Object> pReqVars,
T pInv,
AccSettings pAs,
TaxDestination pTxRules)
adjust invoice lines and Update its totals after tax line has
been changed (Invoice basis).
|
Class<? extends ADestTaxItemLn<?>> |
getDstTxItLnCl()
Getter for dstTxItLnCl.
|
org.beigesoft.factory.IFactorySimple<LTL> |
getFctLineTxLn()
Getter for fctLineTxLn.
|
InvTxMeth<T,TL> |
getInvTxMeth()
Getter for invTxMeth.
|
Boolean |
getIsMutable()
Getter for isMutable, if line editable, e.g.
|
Class<LTL> |
getLtlCl()
Getter for ltlCl.
|
Boolean |
getNeedMkTxCat()
Getter for need make line tax category (purchase return not).
|
UtlInvBase<RS> |
getUtlInvBase()
Getter for utlInvBase.
|
void |
makeLine(Map<String,Object> pReqVars,
L pLine,
AccSettings pAs,
TaxDestination pTxRules)
Makes invoice line's taxes, totals.
|
void |
makeTotals(Map<String,Object> pReqVars,
L pLine,
AccSettings pAs,
TaxDestination pTxRules)
Makes invoice totals include taxes lines
cause line inserted/changed/deleted.
|
TaxDestination |
revealTaxRules(Map<String,Object> pReqVars,
IInvoice pInv,
AccSettings pAs,
Boolean pIsExtrTx)
Reveal shared tax rules for invoice..
|
void |
setDstTxItLnCl(Class<? extends ADestTaxItemLn<?>> pDstTxItLnCl)
Setter for dstTxItLnCl.
|
void |
setFctLineTxLn(org.beigesoft.factory.IFactorySimple<LTL> pFctLineTxLn)
Setter for fctLineTxLn.
|
void |
setInvTxMeth(InvTxMeth<T,TL> pInvTxMeth)
Setter for invTxMeth.
|
void |
setIsMutable(Boolean pIsMutable)
Setter for isMutable.
|
void |
setLtlCl(Class<LTL> pLtlCl)
Setter for ltlCl.
|
void |
setNeedMkTxCat(Boolean pNeedMkTxCat)
Setter for needMkTxCat.
|
void |
setUtlInvBase(UtlInvBase<RS> pUtlInvBase)
Setter for utlInvBase.
|
public final Boolean getNeedMkTxCat()
Getter for need make line tax category (purchase return not).
getNeedMkTxCat in interface IInvLnTxMeth<T extends IInvoice,L extends IInvoiceLine<T>,LTL extends ALineTxLn<T,L>>public final Class<? extends ADestTaxItemLn<?>> getDstTxItLnCl()
Getter for dstTxItLnCl.
getDstTxItLnCl in interface IInvLnTxMeth<T extends IInvoice,L extends IInvoiceLine<T>,LTL extends ALineTxLn<T,L>>public final Boolean getIsMutable()
Getter for isMutable, if line editable, e.g. any good doesn't.
getIsMutable in interface IInvLnTxMeth<T extends IInvoice,L extends IInvoiceLine<T>,LTL extends ALineTxLn<T,L>>public final org.beigesoft.factory.IFactorySimple<LTL> getFctLineTxLn()
Getter for fctLineTxLn.
getFctLineTxLn in interface IInvLnTxMeth<T extends IInvoice,L extends IInvoiceLine<T>,LTL extends ALineTxLn<T,L>>public final TaxDestination revealTaxRules(Map<String,Object> pReqVars, IInvoice pInv, AccSettings pAs, Boolean pIsExtrTx) throws Exception
Reveal shared tax rules for invoice..
pReqVars - request scoped varspInv - invoicepAs - Accounting SettingspIsExtrTx - if extract taxesException - - an exception.public final void makeLine(Map<String,Object> pReqVars, L pLine, AccSettings pAs, TaxDestination pTxRules) throws Exception
Makes invoice line's taxes, totals.
pReqVars - request scoped varspLine - invoice linepAs - Accounting SettingspTxRules - NULL if not taxableException - - an exception.public final void makeTotals(Map<String,Object> pReqVars, L pLine, AccSettings pAs, TaxDestination pTxRules) throws Exception
Makes invoice totals include taxes lines cause line inserted/changed/deleted.
pReqVars - request scoped varspLine - affected linepAs - Accounting SettingspTxRules - NULL if not taxableException - - an exception.public final void adjInvLnsUpdTots(Map<String,Object> pReqVars, T pInv, AccSettings pAs, TaxDestination pTxRules) throws Exception
adjust invoice lines and Update its totals after tax line has been changed (Invoice basis).
pReqVars - additional parampInv - InvoicepAs - accounting settingspTxRules - not NULLException - - an exceptionpublic final UtlInvBase<RS> getUtlInvBase()
Getter for utlInvBase.
public final void setUtlInvBase(UtlInvBase<RS> pUtlInvBase)
Setter for utlInvBase.
pUtlInvBase - referencepublic final void setFctLineTxLn(org.beigesoft.factory.IFactorySimple<LTL> pFctLineTxLn)
Setter for fctLineTxLn.
pFctLineTxLn - referencepublic final void setInvTxMeth(InvTxMeth<T,TL> pInvTxMeth)
Setter for invTxMeth.
pInvTxMeth - referencepublic final void setLtlCl(Class<LTL> pLtlCl)
Setter for ltlCl.
pLtlCl - referencepublic final void setDstTxItLnCl(Class<? extends ADestTaxItemLn<?>> pDstTxItLnCl)
Setter for dstTxItLnCl.
pDstTxItLnCl - referencepublic final void setIsMutable(Boolean pIsMutable)
Setter for isMutable.
pIsMutable - referencepublic final void setNeedMkTxCat(Boolean pNeedMkTxCat)
Setter for needMkTxCat.
pNeedMkTxCat - referenceCopyright © 2016–2019. All rights reserved.