mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat(bills): status accessor.
This commit is contained in:
@@ -623,6 +623,10 @@ export const transformGeneralSettings = (data) => {
|
||||
return _.mapKeys(data, (value, key) => _.snakeCase(key));
|
||||
};
|
||||
|
||||
export const calculateStatus = (paymentAmount, balanceAmount) => {
|
||||
return _.round(paymentAmount / balanceAmount, 2);
|
||||
};
|
||||
|
||||
const getCurrenciesOptions = () => {
|
||||
return Object.keys(Currencies).map((currencyCode) => {
|
||||
const currency = Currencies[currencyCode];
|
||||
|
||||
Reference in New Issue
Block a user