Class BalanceDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.BalanceDAO
-
Field Summary
Fields inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
addContractCharge
(int contractId, BigDecimal summa, Date date, int typeId, String comment) int
addContractPayment
(int contractId, BigDecimal summa, Date date, int typeId, String comment) void
deleteContractCharge
(int chargeId, int contractId) void
deleteContractPayment
(int paymentId, int contractId) getContractAccountList
(int contractId, Date dateFrom, Date dateTo, List<ContractAccount> accountList, List<ContractAccount> subAccountList) getContractAccountSum
(int contractId, Date dateFrom, Date dateTo) Deprecated.getContractBalanceDetailList
(int contractId, Date dateFrom, Date dateTo, List<ContractBalanceDetail> list) getContractBalanceList
(int contractId, Date dateFrom, Date dateTo, List<ContractBalanceGeneral> list) getContractCharge
(int chargeId) getContractChargeList
(int contractId, Date dateFrom, Date dateTo, List<ContractCharge> chargeList, List<ContractCharge> subChargeList) getContractPayment
(int paymentId) getContractPaymentList
(int contractId, Date dateFrom, Date dateTo) Deprecated.getContractPaymentList
(int contractId, Date dateFrom, Date dateTo, List<ContractPayment> paymentList, List<ContractPayment> subPaymentList) int
updateContractCharge
(int id, int contractId, BigDecimal summa, Date date, int typeId, String comment) int
updateContractPayment
(int id, int contractId, BigDecimal summa, Date date, int typeId, String comment) Methods inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
doRequest, getDbInfo, getPage, getParameterId, getVersion, linesToString, readJsonValue, setPage
-
Field Details
-
BGBILLING_KERNEL_CONTRACT_BALANCE_9
- See Also:
-
-
Constructor Details
-
BalanceDAO
-
-
Method Details
-
getContractPaymentList
public BigDecimal getContractPaymentList(int contractId, Date dateFrom, Date dateTo, List<ContractPayment> paymentList, List<ContractPayment> subPaymentList) -
getContractChargeList
public BigDecimal getContractChargeList(int contractId, Date dateFrom, Date dateTo, List<ContractCharge> chargeList, List<ContractCharge> subChargeList) -
getContractAccountList
public BigDecimal getContractAccountList(int contractId, Date dateFrom, Date dateTo, List<ContractAccount> accountList, List<ContractAccount> subAccountList) -
getContractBalanceList
public BigDecimal[] getContractBalanceList(int contractId, Date dateFrom, Date dateTo, List<ContractBalanceGeneral> list) -
getContractBalanceDetailList
public BigDecimal getContractBalanceDetailList(int contractId, Date dateFrom, Date dateTo, List<ContractBalanceDetail> list) -
addContractPayment
public int addContractPayment(int contractId, BigDecimal summa, Date date, int typeId, String comment) -
updateContractPayment
public int updateContractPayment(int id, int contractId, BigDecimal summa, Date date, int typeId, String comment) -
addContractCharge
public int addContractCharge(int contractId, BigDecimal summa, Date date, int typeId, String comment) -
updateContractCharge
public int updateContractCharge(int id, int contractId, BigDecimal summa, Date date, int typeId, String comment) -
getContractPayment
-
getContractCharge
-
deleteContractCharge
public void deleteContractCharge(int chargeId, int contractId) -
deleteContractPayment
public void deleteContractPayment(int paymentId, int contractId) -
getContractPaymentList
@Deprecated public List<ContractPayment> getContractPaymentList(int contractId, Date dateFrom, Date dateTo) Deprecated. -
getContractAccountSum
Deprecated.
-