start overriding

This commit is contained in:
2026-06-03 16:50:07 +07:00
parent 74043548b7
commit 9cd0e330b8
3 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ app_license = "gpl-3.0"
# include js, css files in header of desk.html
# app_include_css = "/assets/posprinter/css/posprinter.css"
# app_include_js = "/assets/posprinter/js/posprinter.js"
app_include_js = "posprinter.bundle.js"
# include js, css files in header of web template
# web_include_css = "/assets/posprinter/css/posprinter.css"
+13
View File
@@ -0,0 +1,13 @@
frappe.after_ajax(() => {
console.log("overriding ====");
const original = erpnext.PointOfSale.Controller.prototype.constuctor;
erpnext.PointOfSale.Controller.prototype.constuctor = function () {
console.log("Yoooooooooooooooooow");
original.call(this, ...arguments);
console.log("byeeeeeeeeeeeeeeeeee");
};
});
@@ -0,0 +1 @@
import "./pos_override.js";