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 TypeMethodDescriptionvoid
Invoice.addPayment
(Money amount, Transaction transaction) void
Invoice.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) void
void
Invoice.setPayment
(Money payment) void
Invoice.setPayment
(Money amount, Transaction transaction) void
Invoice.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.Divide the amount with an "exchange rate" to convert it into another currency value.Convert this monetary value to another currency (by applying the average rate).QuantityWithCost.cost()
Returns the value of thecost
record component.static Money
Construct a monetary value from a string representation.final Money
Account.createAmount
(BigDecimal amount) final Money
Account.createLocalCurrencyAmount
(BigDecimal amount) Money.divide
(double divisor) Divide the amount with a valueDivide the amount with a quantity (To find the unit price)Divide the amount with a rateMoney.divide
(BigDecimal divisor) Divide the amount with a valueDivide 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 Money
Account.getBalance()
final Money
Account.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 Money
LandedCost.getCost
(StoredObject forObject) 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 Money
Account.getLocalCurrencyBalance()
final Money
Account.getLocalCurrencyBalance
(Date date) LedgerEntry.getLocalCurrencyBalance()
Get the local currency balance in the account after this entry is counted.final Money
Account.getLocalCurrencyOpeningBalance()
final Money
Account.getLocalCurrencyOpeningBalance
(Date date) Ledger.getLocalCurrencyOpeningBalance()
Local currency opening balance.default Money
LedgerEntry.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 Money
Account.getOpeningBalance()
final Money
Account.getOpeningBalance
(Date date) Ledger.getOpeningBalance()
Foreign currency opening balance.default Money
LedgerEntry.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 valueMoney.multiply
(DecimalNumber multiplicand) Multiply the amount with a rateMultiply the amount with a quantity (Given the unit price, find out the total amount).Multiply the amount with a rateMoney.multiply
(BigDecimal multiplicand) Multiply the amount with a valueMultiply 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.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 applying the given "exchange rate".Money.toLocal
(Rate exchangeRate, TransactionManager tm) Convert this monetary value to the equivalent in local currency by applying the given "exchange rate".Money.toLocal
(SystemEntity systemEntity) Convert this monetary value to the equivalent in local currency by applying the current "exchange rate".Money.toLocal
(TransactionManager tm) Convert this monetary value to the equivalent in local currency by applying the current "exchange rate".Money.toLocal
(Date date, SystemEntity systemEntity) Convert this monetary value to the equivalent in local currency by applying the current "exchange rate".Money.toLocal
(Date date, TransactionManager tm) Convert this monetary value to the equivalent in local currency by applying the current "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 void
Account.addToOpeningBalance
(TransactionManager tm, Money amount) final void
Account.addToOpeningBalance
(TransactionManager tm, Money amount, Money localCurrencyAmount) void
JournalVoucher.allowExcess
(Account account, Money excess) Allow excess in an account participating in this transaction.static void
TransactionValueDate.changeTo
(Date newValueDate, Id accountId, Date transactionDate, Money amount, int entrySerial, TransactionManager tm) static void
TransactionValueDate.changeTo
(Date newValueDate, Id accountId, Date transactionDate, Money amount, Id voucherId, int entrySerial, TransactionManager tm) static void
TransactionValueDate.changeTo
(Date newValueDate, Id accountId, Date transactionDate, Money amount, Id voucherId, TransactionManager tm) static void
TransactionValueDate.changeTo
(Date newValueDate, Id accountId, Date transactionDate, Money amount, TransactionManager tm) int
TaxRegion.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) void
InventoryPOItem.correctUnitPrice
(DBTransaction transaction, Money unitPrice) final void
JournalVoucher.credit
(Account account, Money amount, int entrySerial, String type, String particulars) Credit a local currency account.final void
JournalVoucher.credit
(Account account, Money amount, int entrySerial, String type, String particulars, Date valueDate) Credit a local currency account.final void
JournalVoucher.credit
(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars) Credit a foreign currency account.final void
JournalVoucher.credit
(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars, Date valueDate) Credit a foreign currency account.final void
JournalVoucher.credit
(Account account, Money amount, Money localCurrencyAmount, String type, String particulars) Credit a foreign currency account.final void
JournalVoucher.credit
(Account account, Money amount, Money localCurrencyAmount, String type, String particulars, Date valueDate) Credit a foreign currency account.final void
Credit a local currency account.final void
JournalVoucher.credit
(Account account, Money amount, String type, String particulars, Date valueDate) Credit a local currency account.final void
JournalVoucher.debit
(Account account, Money amount, int entrySerial, String type, String particulars) Debit a local currency account.final void
JournalVoucher.debit
(Account account, Money amount, int entrySerial, String type, String particulars, Date valueDate) Debit a local currency account.final void
JournalVoucher.debit
(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars) Debit a foreign currency account.final void
JournalVoucher.debit
(Account account, Money amount, Money localCurrencyAmount, int entrySerial, String type, String particulars, Date valueDate) Debit a foreign currency account.final void
JournalVoucher.debit
(Account account, Money amount, Money localCurrencyAmount, String type, String particulars) Debit a foreign currency account.final void
JournalVoucher.debit
(Account account, Money amount, Money localCurrencyAmount, String type, String particulars, Date valueDate) Debit a foreign currency account.final void
Debit a local currency account.final void
JournalVoucher.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) boolean
Money.isGreaterThan
(Money another) Check if this is greater than 'another'.boolean
Money.isGreaterThanOrEqual
(Money another) Check if this is greater than or equal to 'another'.boolean
Money.isLessThan
(Money another) Check if this is less than 'another'.boolean
Money.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)void
InventoryItem.resurrect
(Money cost, InventoryLocation location) Resurrect an item so that the same P/N and S/N can be used again.void
void
void
void
void
InventoryROItem.setCostOfRepair
(Money costOfRepair) void
InventoryGRN.setLandedCost
(Money landedCost) void
AccountLimit.setLimitAmount
(Money limitAmount) void
UnpostedJournalEntry.setLocalCurrencyAmount
(Money localCurrencyAmount) final void
Account.setOpeningBalance
(TransactionManager tm, Money amount) final void
Account.setOpeningBalance
(TransactionManager tm, Money amount, Money localCurrencyAmount) void
void
ConsignmentItem.setUnitCost
(Money unitCost) void
InventoryGRNItem.setUnitCost
(Money unitCost) void
InventoryItemType.setUnitCost
(Money unitCost) void
InventoryPOItem.setUnitPrice
(Money unitPrice) void
InventorySaleItem.setUnitPrice
(Money unitPrice) Subtract a monetary value from this list.Subtract amountboolean
InventoryItem.updateCost
(TransactionManager tm, Money newCost, boolean updateAll) Update the cost of this item.void
InventoryLedger.updateCost
(TransactionManager tm, Money newCost) boolean
InventoryGRNItem.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 aQuantityWithCost
record 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 Money
static Money
static Money
static Money
Methods 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 Money
MoneyField.getModelValue
(String string) Methods in com.storedobject.ui with parameters of type MoneyModifier and TypeMethodDescriptionprotected String
protected void
MoneyField.setPresentationValue
(Money value) void
protected boolean
MoneyField.valueEquals
(Money value1, Money value2)