feat(bills): status accessor.

This commit is contained in:
elforjani3
2021-03-24 16:04:19 +02:00
parent 545a662825
commit a4cb075cea
4 changed files with 143 additions and 54 deletions

View File

@@ -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];