This file contains hidden or 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
| frappe.ui.form.on('Sales Invoice', { | |
| refresh(frm) { | |
| // your code here | |
| } | |
| }) | |
| frappe.ui.form.on('Sales Invoice Item', { | |
| item_code: function (frm, cdt, cdn) { | |
| var child = locals[cdt][cdn]; |
This file contains hidden or 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
| def cancel_quot(data): | |
| req=frappe.request.data | |
| status=req.status | |
| status==cancel: | |
| doc=frappe.get_doc('qou',) | |
| doc.cancel() | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| //Path, club is our app name. Replace it with your app name. | |
| //workspace/development/frappe-bench/apps/club/club/public/js/point_of_sale.js | |
| frappe.provide("erpnext.pos"); | |
| // the following two handles will watch the page changes everywhere | |
| $(window).on('hashchange', page_changed); | |
| $(window).on('load', page_changed); | |
| function page_changed(event) { |