resilient-tech / india-compliance

Simple, yet powerful compliance solutions for Indian businesses
https://indiacompliance.app
GNU General Public License v3.0
128 stars 116 forks source link

bug: make_gst_revesal_entry_from_advance_payment does not handle multi currency scenarios #2071

Open govindsmenokee opened 3 weeks ago

govindsmenokee commented 3 weeks ago

Information about bug

The make_gst_reversal_entry_from_advance_payment method, designed to handle GST reversal, does not take into account the multi-currency scenario. Consequently, the accounts receivable display incorrect values.

To replicate this issue, create a USD payment of type 'receive' and include a GST charge for the remittance charges from the bank in the payment entry. Tag this entry against a sales invoice and reconcile. Due to improper handling of USD or any foreign currency within this function, the entire ledger is affected as the amount_in_account currency is not passed correctly.

Version

all v14

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct