diff --git a/westech_r2/__pycache__/__init__.cpython-312.pyc b/westech_r2/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..0b2fbe3 Binary files /dev/null and b/westech_r2/__pycache__/__init__.cpython-312.pyc differ diff --git a/westech_r2/__pycache__/hooks.cpython-312.pyc b/westech_r2/__pycache__/hooks.cpython-312.pyc new file mode 100644 index 0000000..1438909 Binary files /dev/null and b/westech_r2/__pycache__/hooks.cpython-312.pyc differ diff --git a/westech_r2/page/customer-intake/customer-intake.html b/westech_r2/page/customer-intake/customer-intake.html index 9b95a4c..b475162 100644 --- a/westech_r2/page/customer-intake/customer-intake.html +++ b/westech_r2/page/customer-intake/customer-intake.html @@ -63,6 +63,29 @@ +
+
+ + +
+
+ + +
+
+ + +
+
diff --git a/westech_r2/page/customer-intake/customer-intake.js b/westech_r2/page/customer-intake/customer-intake.js index a955aeb..4952da8 100644 --- a/westech_r2/page/customer-intake/customer-intake.js +++ b/westech_r2/page/customer-intake/customer-intake.js @@ -108,7 +108,10 @@ frappe.pages["customer-intake"].on_page_load = function(wrapper) { args: { data: JSON.stringify({ customer: currentCustomer.name, - customer_number: $("#cust-number").val() + customer_number: $("#cust-number").val(), + data_status: $("#pallet-data-status").val(), + status: $("#pallet-status").val(), + inbound_weight: $("#pallet-weight").val() }) }, callback: function(r) { diff --git a/westech_r2/page/customer-intake/customer-intake.py b/westech_r2/page/customer-intake/customer-intake.py index 6ff5fd8..544f5be 100644 --- a/westech_r2/page/customer-intake/customer-intake.py +++ b/westech_r2/page/customer-intake/customer-intake.py @@ -77,6 +77,8 @@ def create_pallet(data): pallet = frappe.new_doc("Pallet") pallet.customer = data.get("customer") pallet.customer_number = data.get("customer_number") - pallet.status = "Open" + pallet.data_status = data.get("data_status", "D0") + pallet.status = data.get("status", "Received") + pallet.inbound_weight = data.get("inbound_weight", "") pallet.save() return {"status": "ok", "pallet": pallet.name}