-
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 #1329 from resilient-tech/version-15-hotfix
chore: release v15
- Loading branch information
Showing
35 changed files
with
791 additions
and
95 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
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
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
27 changes: 27 additions & 0 deletions
27
india_compliance/gst_india/client_scripts/purchase_receipt.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,27 @@ | ||
const DOCTYPE = "Purchase Receipt"; | ||
setup_e_waybill_actions(DOCTYPE); | ||
|
||
frappe.ui.form.on(DOCTYPE, { | ||
refresh(frm) { | ||
if (gst_settings.enable_e_waybill && gst_settings.enable_e_waybill_from_pr) | ||
show_sandbox_mode_indicator(); | ||
}, | ||
|
||
after_save(frm) { | ||
if ( | ||
frm.doc.supplier_address || | ||
!(frm.doc.gst_category == "Unregistered" || frm.doc.is_return) || | ||
!is_e_waybill_applicable(frm) || | ||
!has_e_waybill_threshold_met(frm) | ||
) | ||
return; | ||
|
||
frappe.show_alert( | ||
{ | ||
message: __("Supplier Address is required to create e-Waybill"), | ||
indicator: "yellow", | ||
}, | ||
10 | ||
); | ||
}, | ||
}); |
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
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
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
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,12 @@ | ||
from india_compliance.gst_india.overrides.sales_invoice import ( | ||
update_dashboard_with_gst_logs, | ||
) | ||
|
||
|
||
def get_dashboard_data(data): | ||
return update_dashboard_with_gst_logs( | ||
"Purchase Receipt", | ||
data, | ||
"e-Waybill Log", | ||
"Integration Request", | ||
) |
Oops, something went wrong.