Skip to content

Instantly share code, notes, and snippets.

View fadilsiddique's full-sized avatar
🎯
Focusing

Fadil SIddique fadilsiddique

🎯
Focusing
View GitHub Profile
@fadilsiddique
fadilsiddique / lastsellingprice.gist
Last active December 1, 2023 02:56
Fetch Last Selling Price Of The Customer
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];
def cancel_quot(data):
req=frappe.request.data
status=req.status
status==cancel:
doc=frappe.get_doc('qou',)
doc.cancel()
@fadilsiddique
fadilsiddique / PY0101EN-2-3-Dictionaries.ipynb
Created December 17, 2020 06:51
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fadilsiddique
fadilsiddique / PY0101EN-2-1-Tuples.ipynb
Created December 17, 2020 06:28
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fadilsiddique
fadilsiddique / PY0101EN-1-2-Strings.ipynb
Created December 16, 2020 17:41
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fadilsiddique
fadilsiddique / point_of_sale.js
Created September 30, 2020 15:28
Add button in pos of ERPNext.
//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) {