We hace created a PO with amount as below
while making payment entry it says
I can’t say how Rounded Total applies here.
The message makes sense - indeed the payment advance exceeds the (Grand Total) amount due - it seems reasonable to prevent overpayment?
or item.get("conversion_factor")
or 1
)
if self.doctype == "Purchase Invoice":
self.set_expense_account(for_validate)
def apply_pricing_rule_on_items(self, item, pricing_rule_args):
if not pricing_rule_args.get("validate_applied_rule", 0):
# if user changed the discount percentage then set user's discount percentage ?
if pricing_rule_args.get("price_or_product_discount") == "Price":
item.set("pricing_rules", pricing_rule_args.get("pricing_rules"))
if pricing_rule_args.get("apply_rule_on_other_items"):
other_items = json.loads(pricing_rule_args.get("apply_rule_on_other_items"))
if other_items and item.item_code not in other_items:
return
item.set("discount_percentage", pricing_rule_args.get("discount_percentage"))
item.set("discount_amount", pricing_rule_args.get("discount_amount"))
if pricing_rule_args.get("pricing_rule_for") == "Rate":
item.set("price_list_rate", pricing_rule_args.get("price_list_rate"))
peterg
October 9, 2018, 1:16am
3
It depends on what the purpose of the rounding is, I think. As I interpret it,Rounded Total
indicates the amount that should be paid, so it’s confusing when paying that amount throws up errors. There’s space in the invoice form to write off a rounding difference, but it looks like it’s not getting thrown in automatically.
The other alternative for OP would be to disable rounding.
Thanks Peter - yes these exchanges support your interpretation that Rounded Total represents the payment amount due, at least in the case of Sales Invoice and Sales Order.
So why a PO does not seem to follow that covention, unless as you say rounding must be disabled in that case.
The issue is that outstanding amount is being calculated with Grand Total as reference. Shouldn’t the Rounded Total be used as reference ? This is creating an issue where even after payment entry being submitted, the invoice is overdue because there has been no payment allocation for that fraction amount.
[sales_inv_outstanding]
In this example, outstanding amount before the payment was Rs. 11,649.20. Now we get a cheque of Rs. 11649 and we create a payment entry and submit it with the sales i…
Hi,
If case is
In Sales Invoice as Include payment checked,
Grand total 10.31
Rounded Total is 10.00
So, it shows Outstanding amount 10.31
But if Payment received as rounded total 10.00,
shows in outstanding 0.31 !
How to set that 0.31 in round off account and not as outstanding amount? Preferably automatically?
How to make Rounded total same as outstanding total ,so the customer will pay only the rounded amount and change and other entries will be calculated on rounded amount.
[image]
i want the customer to pay rounded amount i.e 9 in above case but currently if he pays 9 , it shows change 0.1 which should not happen.
Its pretty simple and basic, so i think it should be already in system?
Can anyone guide me how to set this up?
Thanks.
https://support.erpnext.com/kb/accounting/purchase-invoice-round-off-account
https://erpnext.org/docs/user/manual/en/customize-erpnext/articles/disable-rounded-total