Skip to content

Commit

Permalink
fix: subtract change_amount from paid_amount field on POS Register (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryPaulo authored May 9, 2022
1 parent 867494e commit ebbe27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/pos_register/pos_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_pos_entries(filters, group_by_field):
"""
SELECT
p.posting_date, p.name as pos_invoice, p.pos_profile,
p.owner, p.base_grand_total as grand_total, p.base_paid_amount as paid_amount,
p.owner, p.base_grand_total as grand_total, p.base_paid_amount - p.change_amount as paid_amount,
p.customer, p.is_return {select_mop_field}
FROM
`tabPOS Invoice` p {from_sales_invoice_payment}
Expand Down

0 comments on commit ebbe27c

Please sign in to comment.