frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
20.38k stars 7.08k forks source link

General Ledger ( Credit Amount in Transaction Currency and Debit Amount in Transaction Currency For sales invoice with more than one items get incorrect #39351

Open Sendipad opened 8 months ago

Sendipad commented 8 months ago

Information about bug

photo_2024-01-12_22-28-26

To Repeat this when you make sales invoice with more than one item , which has the same income accounts , Credit Amount in Transaction Currency Which is new in ERPNEXT V15 it will only pick the amount of the first items .

Module

accounts

Version

ERPNext: v15.10.0 (version-15) Frappe Framework: v15.9.0 (version-15)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

Sendipad commented 8 months ago

To reproduce this issue: issue a sales invoice with two or three items: IMG_20240114_143057_926 and once submitted check general ledger for this voucher with enabled show columns in transaction currency : IMG_20240114_143057_850

It will show unbalance amount as the Credit in transaction Currency only pick the first items total amount only , It seems like the code in accounts controller. py need some refactor to merge and sum total of the same accounts for these columns