-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for GL Repost for Purchase Invoice ITC Reversal (#1756)
* fix: add support for gl repost for Purchase Invoice ITC Reversal * fix: process futher to update stock ledger only if required * fix: revert simplification of ineligible itc to fix repost item stock * test: repost accounting ledger correctly with itc ineligibility * refactor: check if debit entry is required before getting expense account * test: enable repost settings for purchase invoice * fix: repost purchases item valuation and its test cases
- Loading branch information
Showing
6 changed files
with
178 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
india_compliance/gst_india/overrides/repost_accounting_ledger.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import frappe | ||
|
||
|
||
def before_submit(doc, method=None): | ||
frappe.flags.through_repost_accounting_ledger = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.