-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #526 from resilient-tech/version-14-hotfix
chore: release v14
- Loading branch information
Showing
30 changed files
with
1,784 additions
and
59 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
21 changes: 21 additions & 0 deletions
21
india_compliance/gst_india/client_scripts/purchase_invoice.js
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,21 @@ | ||
frappe.ui.form.on("Purchase Invoice", { | ||
refresh(frm) { | ||
if ( | ||
frm.doc.docstatus !== 1 || | ||
frm.doc.gst_category !== "Overseas" || | ||
frm.doc.__onload?.bill_of_entry_exists | ||
) | ||
return; | ||
|
||
frm.add_custom_button( | ||
__("Bill of Entry"), | ||
() => { | ||
frappe.model.open_mapped_doc({ | ||
method: "india_compliance.gst_india.doctype.bill_of_entry.bill_of_entry.make_bill_of_entry", | ||
frm: frm, | ||
}); | ||
}, | ||
__("Create") | ||
); | ||
}, | ||
}); |
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
Empty file.
Oops, something went wrong.