T - invoice typeL - invoice line typeTL - invoice tax line typeLTL - invoice line's tax line typeRS - platform dependent record set typepublic class UtInLnTxTo<RS,T extends IInvb,L extends IInvLn<T,?>,TL extends AInTxLn<T>,LTL extends ALnTxLn<T,L>> extends Object implements IInvLnTxMeth<T,L,LTL>
Utility for purchase/sales invoice line. It makes taxes and totals for line and invoice. 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 |
|---|
UtInLnTxTo() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjInvLnsUpdTots(Map<String,Object> pRvs,
Map<String,Object> pVs,
T pInv,
AcStg pAs,
TxDst pTxRules)
adjust invoice lines and Update its totals after tax line has
been changed (Invoice basis).
|
Class<? extends ATxDsLn<?>> |
getDstTxItLnCl()
Getter for dstTxItLnCl.
|
org.beigesoft.fct.IFctRq<LTL> |
getFctLineTxLn()
Getter for fctLineTxLn.
|
Class<L> |
getInvLnCl()
Getter for invLnCl.
|
InvTxMeth<T,TL> |
getInvTxMeth()
Getter for invTxMeth.
|
Boolean |
getIsMutable()
Getter for isMutable, if line editable, e.g.
|
Boolean |
getIsPurch()
Getter for isPurch.
|
Class<? extends org.beigesoft.mdl.IIdLn> |
getItmCl()
Getter for itmCl.
|
Class<LTL> |
getLtlCl()
Getter for ltlCl.
|
Boolean |
getNeedMkTxCat()
Getter for need make line tax category (purchase return not).
|
UtInLnTxToBs<RS> |
getUtlInv()
Getter for utlInv.
|
void |
makeTotals(Map<String,Object> pRvs,
Map<String,Object> pVs,
L pLine,
AcStg pAs,
TxDst pTxRules)
Makes invoice totals include taxes lines
cause line inserted/changed/deleted.
|
void |
mkLnTxTo(Map<String,Object> pRvs,
Map<String,Object> pVs,
L pLine,
AcStg pAs,
TxDst pTxRules)
Makes invoice line's taxes, totals.
|
TxDst |
revealTaxRules(IInvb pInv,
AcStg pAs)
Reveal shared tax rules for invoice..
|
void |
setDstTxItLnCl(Class<? extends ATxDsLn<?>> pDstTxItLnCl)
Setter for dstTxItLnCl.
|
void |
setFctLineTxLn(org.beigesoft.fct.IFctRq<LTL> pFctLineTxLn)
Setter for fctLineTxLn.
|
void |
setInvLnCl(Class<L> pInvLnCl)
Setter for invLnCl.
|
void |
setInvTxMeth(InvTxMeth<T,TL> pInvTxMeth)
Setter for invTxMeth.
|
void |
setIsMutable(Boolean pIsMutable)
Setter for isMutable.
|
void |
setIsPurch(Boolean pIsPurch)
Setter for isPurch.
|
void |
setItmCl(Class<? extends org.beigesoft.mdl.IIdLn> pItmCl)
Setter for itmCl.
|
void |
setLtlCl(Class<LTL> pLtlCl)
Setter for ltlCl.
|
void |
setNeedMkTxCat(Boolean pNeedMkTxCat)
Setter for needMkTxCat.
|
void |
setUtlInv(UtInLnTxToBs<RS> pUtlInv)
Setter for utlInv.
|
public final Boolean getNeedMkTxCat()
Getter for need make line tax category (purchase return not).
public final Class<? extends org.beigesoft.mdl.IIdLn> getItmCl()
Getter for itmCl.
public final Boolean getIsMutable()
Getter for isMutable, if line editable, e.g. any good doesn't.
public final org.beigesoft.fct.IFctRq<LTL> getFctLineTxLn()
Getter for fctLineTxLn.
public final TxDst revealTaxRules(IInvb pInv, AcStg pAs) throws Exception
Reveal shared tax rules for invoice..
pInv - invoicepAs - Accounting SettingsException - - an exception.public final void mkLnTxTo(Map<String,Object> pRvs, Map<String,Object> pVs, L pLine, AcStg pAs, TxDst pTxRules) throws Exception
Makes invoice line's taxes, totals.
pRvs - request scoped varspVs - Invoker scoped variables, not nullpLine - invoice linepAs - Accounting SettingspTxRules - NULL if not taxableException - - an exception.public final void makeTotals(Map<String,Object> pRvs, Map<String,Object> pVs, L pLine, AcStg pAs, TxDst pTxRules) throws Exception
Makes invoice totals include taxes lines cause line inserted/changed/deleted.
pRvs - request scoped varspVs - Invoker scoped variables, not nullpLine - affected linepAs - Accounting SettingspTxRules - NULL if not taxableException - - an exception.public final void adjInvLnsUpdTots(Map<String,Object> pRvs, Map<String,Object> pVs, T pInv, AcStg pAs, TxDst pTxRules) throws Exception
adjust invoice lines and Update its totals after tax line has been changed (Invoice basis).
pRvs - additional parampVs - Invoker scoped variables, not nullpInv - InvoicepAs - accounting settingspTxRules - not NULLException - - an exceptionpublic final UtInLnTxToBs<RS> getUtlInv()
Getter for utlInv.
public final void setUtlInv(UtInLnTxToBs<RS> pUtlInv)
Setter for utlInv.
pUtlInv - referencepublic final void setFctLineTxLn(org.beigesoft.fct.IFctRq<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 setItmCl(Class<? extends org.beigesoft.mdl.IIdLn> pItmCl)
Setter for itmCl.
pItmCl - referencepublic final void setInvLnCl(Class<L> pInvLnCl)
Setter for invLnCl.
pInvLnCl - referencepublic final void setDstTxItLnCl(Class<? extends ATxDsLn<?>> 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 - referencepublic final Boolean getIsPurch()
Getter for isPurch.
public final void setIsPurch(Boolean pIsPurch)
Setter for isPurch.
pIsPurch - referenceCopyright © 2019. All rights reserved.