
org.beigesoft.acc.srv.IInvTxMeth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beige-acc Show documentation
Show all versions of beige-acc Show documentation
It consists of double entry accounting and trading (web-store) business logic.
It's based on previous beigesoft-accounting and beigesoft-webstore projects.
The newest version!
/*
BSD 2-Clause License
Copyright (c) 2019, Beigesoft™
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.beigesoft.acc.srv;
import java.io.IOException;
import org.beigesoft.fct.IFctRq;
import org.beigesoft.acc.mdlb.AInTxLn;
import org.beigesoft.acc.mdlb.IInvb;
import org.beigesoft.acc.mdlb.IInvLn;
import org.beigesoft.acc.mdlp.Itm;
import org.beigesoft.acc.mdlp.Srv;
/**
* Abstraction of tax method code/data for purchase/sales invoice.
* It contains data dedicated to concrete invoice type.
*
* @param invoice type
* @param invoice tax line type
* @author Yury Demidenko
*/
public interface IInvTxMeth> {
/**
* Getter for invoice SQL tables names: {[GOOD LINE], [SERVICE LINE],
* [TAX LINE], [GOOD TAX LINE], [SERVICE TAX LINE]} or
* {[GOOD LINE], [TAX LINE], [GOOD TAX LINE]}.
* If SQL query no needs it, then set it NULL.
* @return String[]
**/
String[] getTblNmsTot();
/**
* Getter for good line class.
* @return Class>
**/
Class extends IInvLn> getGoodLnCl();
/**
* Getter for service line class.
* @return Class extends IInvLn>
**/
Class extends IInvLn> getServiceLnCl();
/**
* Getter for invTxLnCl.
* @return Class
**/
Class getInvTxLnCl();
/**
* Getter for invTxLnCl.
* @return Class
**/
Class getInvCl();
/**
* Getter for fctInvTxLn.
* @return IFctRq
**/
IFctRq getFctInvTxLn();
/**
* Getter for isTxByUser, if line tax must be set by user.
* @return Boolean
**/
Boolean getIsTxByUser();
/**
* Lazy get for quTxInvBas.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTxInvBas() throws IOException;
/**
* Lazy get for quTxInvBasAggr.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTxInvBasAggr() throws IOException;
/**
* Lazy get for quTxItBasAggr.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTxItBasAggr() throws IOException;
/**
* Lazy get for quTxItBas.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTxItBas() throws IOException;
/**
* Lazy get for quTotals.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTotals() throws IOException;
/**
* Lazy get for quTxInvAdj.
* @return String
* @throws IOException - IO exception
**/
String lazyGetQuTxInvAdj() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy