MA
Asked
Hello. The balance amount of some pos bill is not showing. I thing when the total amount have zero value in its decimal then it shows the balance amount otherwise it do not show it. Kindly check and reply me asap. I am attaching the snapshot.
Attachments
- MSAnsweredHello,
I can't guess what's wrong. Is there any error in the console log. Did you test it on live demo? - MAAnsweredYes I tested. the problem is in the file themes/pos/sales.php
function balance(x, number) {
if (!x) {
return '0.00';
}
var b = x.split('__');
var total = parseFloat(b[0]);
var rounding = parseFloat(b[1]);
var paid = parseFloat(b[2]);
if (number == 'number') {
return formatDecimals(formatDecimals(total)+rounding-paid);
}
return currencyFormat(formatDecimals(formatDecimals(total)+rounding-paid));
}
Due to the formatdecimals the value becomes zero.. - MSAnsweredThat isn't used for the row level. That's only used to calculate total in the table footer.
Is it showing if you just return `x` back? - MAAnsweredI just removed the formatdecimals, and the it shows..
- MSAnsweredOh that's strange, I will check again. Thanks
- MAAnsweredok thank you
One thing more How many installations can we do on one license? I am just using this software for my shop... - MSAnsweredHello,
*One **active production** installation per license.* You can have separate test/dev installation too.
Thank you - Login to Reply