Uses of Class
com.storedobject.core.Money
Packages that use Money
Package
Description
-
Uses of Money in com.storedobject.accounts
Methods in com.storedobject.accounts that return MoneyModifier and TypeMethodDescriptionInvoice.getAmount()Invoice.getPayment()FixedTax.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) NoTax.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) Invoice.getTotal()Methods in com.storedobject.accounts with parameters of type MoneyModifier and TypeMethodDescriptionvoidInvoice.addPayment(Money amount, Transaction transaction) voidInvoice.addPayment(Money amount, TransactionManager tm) FixedTax.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) NoTax.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) voidvoidInvoice.setPayment(Money payment) voidInvoice.setPayment(Money amount, Transaction transaction) voidInvoice.setPayment(Money amount, TransactionManager tm) void -
Uses of Money in com.storedobject.core
Methods in com.storedobject.core that return MoneyModifier and TypeMethodDescriptionMoney.absolute()Return the monetary value containing the absolute value.Add amountAdd amount valueMoney.add(BigDecimal amount) Add amountConvert this monetary value to another currency by applying the buying rate.Convert this monetary value to another currency by applying the buying rate.Money.buy(Currency currency, CurrencyRateProvider rateProvider) Convert this monetary value to another currency by applying the buying rate.Convert this monetary value to another currency (by multiplying with the average rate).Convert this monetary value to another currency (by multiplying with the average rate).Money.convert(Currency currency, CurrencyRateProvider rateProvider) Convert this monetary value to another currency (by multiplying with the average rate).QuantityWithCost.cost()Returns the value of thecostrecord component.static MoneyConstruct a monetary value from a string representation.final MoneyAccount.createAmount(BigDecimal amount) final MoneyAccount.createLocalCurrencyAmount(BigDecimal amount) Money.divide(double divisor) Divide the amount with a valueDivide the amount with a rate and convert it to another currency.Money.divide(DecimalNumber divisor) Divide the amount with a rateMoney.divide(DecimalNumber divisor, Currency currency) Divide the amount with a rate and convert it to another currency.Divide the amount with a quantity (To find the unit price)Money.divide(BigDecimal divisor) Divide the amount with a rate.Money.divide(BigDecimal divisor, Currency currency) Divide the amount with a rate and convert it to another currency.Divide the money with this quantity (To get the unit price)InventoryGRN.getAmount()JournalVoucher.Entry.getAmount()Get the (foreign currency) amount of this entry.LandedCost.getAmount()LedgerEntry.getAmount()Foreign currency amount of this entry.UnpostedJournalEntry.getAmount()final MoneyAccount.getBalance()final MoneyAccount.getBalance(Date date) LedgerEntry.getBalance()Get the balance in the account after this entry is counted.InventoryGRNItem.getCost()Get cost of this item (excluding item-tax if any).InventoryItem.getCost()InventoryLedger.getCost()static MoneyLandedCost.getCost(StoredObject forObject) StockHistory.getCost()UnitCost.getCost()UnitCost.getCost(MeasurementUnit unit) InventoryROItem.getCostOfRepair()LandedCost.getEffectiveAmount()InventoryGRN.getLandedCost()AccountLimit.getLimitAmount()JournalVoucher.Entry.getLocalCurrencyAmount()Get the amount of this entry (in accounting currency).LedgerEntry.getLocalCurrencyAmount()Local currency amount of this entry.UnpostedJournalEntry.getLocalCurrencyAmount()final MoneyAccount.getLocalCurrencyBalance()final MoneyAccount.getLocalCurrencyBalance(Date date) LedgerEntry.getLocalCurrencyBalance()Get the local currency balance in the account after this entry is counted.final MoneyAccount.getLocalCurrencyOpeningBalance()final MoneyAccount.getLocalCurrencyOpeningBalance(Date date) Ledger.getLocalCurrencyOpeningBalance()Local currency opening balance.default MoneyLedgerEntry.getLocalCurrencyOpeningBalance()Get the opening balance in local currency in the account at this entry (before effecting transaction of this entry).Helper method to retrieve a monetary value from the JSON request.JournalVoucher.getOffsetAmount()Get the offset amount of this JV.final MoneyAccount.getOpeningBalance()final MoneyAccount.getOpeningBalance(Date date) Ledger.getOpeningBalance()Foreign currency opening balance.default MoneyLedgerEntry.getOpeningBalance()Get the opening balance in the account at this entry (before effecting transaction of this entry).InventorySaleItem.getPrice()InventoryGRNItem.getTax()Gte the tax amount for this entry.Tax.getTax()TaxMethod.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) InventoryGRN.getTotal()ConsignmentItem.getUnitCost()InventoryGRNItem.getUnitCost()InventoryItemType.getUnitCost()InventoryPOItem.getUnitPrice()InventorySaleItem.getUnitPrice()Money.multiply(double multiplicand) Multiply the amount with a valueMultiply the amount with a value and convert to another currency.Money.multiply(DecimalNumber multiplicand) Multiply the amount with a rateMoney.multiply(DecimalNumber multiplicand, Currency currency) Multiply the amount with a rate and convert to another currency.Multiply the amount with a quantity (Given the unit price, find out the total amount).Money.multiply(BigDecimal multiplicand) Multiply the amount with a valueMoney.multiply(BigDecimal multiplicand, Currency currency) Multiply the amount with a rate and convert to another currency.Multiply the money with this quantity (Given the unit price, find out the total amount)Money.negate()Reverses the sign of this money.Money.percentage(double percentage) Calculate the percentage.Money.percentage(DecimalNumber percentage) Calculate the percentage.Money.percentage(Rate percentage) Calculate the percentage.Money.percentage(BigDecimal percentage) Calculate the percentage.Money.round()Round the amount to the lower/upper value.Money.roundDown()Round the amount to the lower value.Money.roundUp()Round the amount to the upper value.Convert this monetary value to another currency by applying the selling rate.Convert this monetary value to another currency by applying the selling rate.Money.sell(Currency currency, CurrencyRateProvider rateProvider) Convert this monetary value to another currency by applying the selling rate.Subtract amountSubtract amountMoney.subtract(BigDecimal amount) Subtract amountGet the effective monetary value in a given currency.Money.List.toLocal(SystemEntity systemEntity) Convert to a local currency value.Money.List.toLocal(TransactionManager tm) Convert to a local currency value.Money.toLocal(Rate exchangeRate, SystemEntity systemEntity) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.toLocal(Rate exchangeRate, TransactionManager tm) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.toLocal(SystemEntity systemEntity) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.toLocal(TransactionManager tm) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.toLocal(Date date, SystemEntity systemEntity) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.toLocal(Date date, TransactionManager tm) Convert this monetary value to the equivalent in local currency by multiplying with the given "exchange rate".Money.zero()Set the monetary value to zero.Methods in com.storedobject.core with parameters of type MoneyModifier and TypeMethodDescriptionAdd amountAdd a monetary value to this list.final voidAccount.addToOpeningBalance(TransactionManager tm, Money amount) final voidAccount.addToOpeningBalance(TransactionManager tm, Money amount, Money localCurrencyAmount) voidJournalVoucher.allowExcess(Account account, Money excess) Allow excess in an account participating in this transaction.static voidTransactionValueDate.changeTo(Date newValueDate, Id accountId, Date transactionDate, Money amount, int entrySerial, TransactionManager tm) static voidTransactionValueDate.changeTo(Date newValueDate, Id accountId, Date transactionDate, Money amount, Id voucherId, int entrySerial, TransactionManager tm) static voidTransactionValueDate.changeTo(Date newValueDate, Id accountId, Date transactionDate, Money amount, Id voucherId, TransactionManager tm) static voidTransactionValueDate.changeTo(Date newValueDate, Id accountId, Date transactionDate, Money amount, TransactionManager tm) intTaxRegion.computeTax(Date date, StoredObject parent, InventoryItem item, Quantity quantity, Money unitCost, Currency localCurrency) TaxRegion.computeTax(Date date, StoredObject parent, InventoryItemType itemType, Quantity quantity, Money unitCost, Currency localCurrency) voidInventoryPOItem.correctUnitPrice(DBTransaction transaction, Money unitPrice) final voidJournalVoucher.credit(Account account, Money amount, int entrySerial, String type, String particulars) Credit a local currency account.final voidJournalVoucher.credit(Account account, Money amount, int entrySerial, String type, String particulars, Date valueDate) Credit a local currency account.final voidJournalVoucher.credit(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars) Credit a foreign currency account.final voidJournalVoucher.credit(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars, Date valueDate) Credit a foreign currency account.final voidJournalVoucher.credit(Account account, Money amount, Money localCurrencyAmount, String type, String particulars) Credit a foreign currency account.final voidJournalVoucher.credit(Account account, Money amount, Money localCurrencyAmount, String type, String particulars, Date valueDate) Credit a foreign currency account.final voidCredit a local currency account.final voidJournalVoucher.credit(Account account, Money amount, String type, String particulars, Date valueDate) Credit a local currency account.final voidJournalVoucher.debit(Account account, Money amount, int entrySerial, String type, String particulars) Debit a local currency account.final voidJournalVoucher.debit(Account account, Money amount, int entrySerial, String type, String particulars, Date valueDate) Debit a local currency account.final voidJournalVoucher.debit(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars) Debit a foreign currency account.final voidJournalVoucher.debit(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars, Date valueDate) Debit a foreign currency account.final voidJournalVoucher.debit(Account account, Money amount, Money localCurrencyAmount, String type, String particulars) Debit a foreign currency account.final voidJournalVoucher.debit(Account account, Money amount, Money localCurrencyAmount, String type, String particulars, Date valueDate) Debit a foreign currency account.final voidDebit a local currency account.final voidJournalVoucher.debit(Account account, Money amount, String type, String particulars, Date valueDate) Debit a local currency account.Divide the money with this quantity (To get the unit price)TaxMethod.getTax(InventoryItemType itemType, Quantity quantity, Money unitCost, Percentage taxRate, Currency localCurrency) booleanMoney.isGreaterThan(Money another) Check if this is greater than 'another'.booleanMoney.isGreaterThanOrEqual(Money another) Check if this is greater than or equal to 'another'.booleanMoney.isLessThan(Money another) Check if this is less than 'another'.booleanMoney.isLessThanOrEqual(Money another) Check if this is less than or equal to 'another'.Multiply the money with this quantity (Given the unit price, find out the total amount)voidInventoryItem.resurrect(Money cost, InventoryLocation location) Resurrect an item so that the same P/N and S/N can be used again.voidvoidvoidvoidvoidvoidInventoryROItem.setCostOfRepair(Money costOfRepair) voidInventoryGRN.setLandedCost(Money landedCost) voidAccountLimit.setLimitAmount(Money limitAmount) voidUnpostedJournalEntry.setLocalCurrencyAmount(Money localCurrencyAmount) final voidAccount.setOpeningBalance(TransactionManager tm, Money amount) final voidAccount.setOpeningBalance(TransactionManager tm, Money amount, Money localCurrencyAmount) voidvoidConsignmentItem.setUnitCost(Money unitCost) voidInventoryGRNItem.setUnitCost(Money unitCost) voidInventoryItemType.setUnitCost(Money unitCost) voidInventoryPOItem.setUnitPrice(Money unitPrice) voidInventorySaleItem.setUnitPrice(Money unitPrice) Subtract a monetary value from this list.Subtract amountbooleanInventoryItem.updateCost(TransactionManager tm, Money newCost, boolean updateAll) Update the cost of this item.voidInventoryLedger.updateCost(TransactionManager tm, Money newCost) booleanInventoryGRNItem.updateValues(TransactionManager tm, Quantity newQuantity, Money newUnitCost, String newSerialNumber) Update various attribute values.Method parameters in com.storedobject.core with type arguments of type MoneyConstructors in com.storedobject.core with parameters of type MoneyModifierConstructorDescriptionQuantityWithCost(Quantity quantity, Money cost) Creates an instance of aQuantityWithCostrecord class.Construct a rate from the monetary values passed.UnitCost(Money unitCost, MeasurementUnit unit) -
Uses of Money in com.storedobject.core.converter
Methods in com.storedobject.core.converter that return MoneyMethods in com.storedobject.core.converter that return types with arguments of type Money -
Uses of Money in com.storedobject.iot
Methods in com.storedobject.iot that return MoneyModifier and TypeMethodDescriptionResourceCost.getRate()static Moneystatic Moneystatic Moneystatic MoneyMethods in com.storedobject.iot with parameters of type Money -
Uses of Money in com.storedobject.ui
Methods in com.storedobject.ui that return MoneyModifier and TypeMethodDescriptionMoneyField.getEmptyValue()protected MoneyMoneyField.getModelValue(String string) Methods in com.storedobject.ui with parameters of type MoneyModifier and TypeMethodDescriptionprotected Stringprotected voidMoneyField.setPresentationValue(Money value) voidprotected booleanMoneyField.valueEquals(Money value1, Money value2)