From 311e74fe18b1d6fa9ea6b481330410495e12f356 Mon Sep 17 00:00:00 2001 From: Westech Admin Date: Wed, 20 May 2026 23:28:08 +0000 Subject: [PATCH] fix: data_status D0/D1 only, add fields to intake page --- .../__pycache__/__init__.cpython-312.pyc | Bin 0 -> 188 bytes westech_r2/__pycache__/hooks.cpython-312.pyc | Bin 0 -> 862 bytes .../page/customer-intake/customer-intake.html | 23 ++++++++++++++++++ .../page/customer-intake/customer-intake.js | 5 +++- .../page/customer-intake/customer-intake.py | 4 ++- 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 westech_r2/__pycache__/__init__.cpython-312.pyc create mode 100644 westech_r2/__pycache__/hooks.cpython-312.pyc diff --git a/westech_r2/__pycache__/__init__.cpython-312.pyc b/westech_r2/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0b2fbe3d184f24793d3a5fa0ea62ab65216276c5 GIT binary patch literal 188 zcmX@j%ge<81UtWSWQhUk#~=<2FhUuhIe?7m3@Hpz43&(UOjWD~dIoxiewvK8xZ~r? zQj3Z+^Yh~4S2BDCssH7upOK%Ns-ISrSWu9vpITIqms(Mxo0OWDoS_dCD%LMgEiOq- z&WJBELT1LtXXa&=#K-FuRQ}?y$<0qG%}KQ@Vgs58az-)8l^>WH85wWzi8gWiRM DuWAPb9ZhVPlmsM zjfIJgzlEh^bSwWrpj#)-PC_feNq+u5zaRI#_x!_k9Yde@pW5e7tA_EjAj?xQ`~iui?61KQnOSo9Q=j^UU;{*upk3wRN;@;dY5#Z989UzBTD? z^ptZ6LP8h?e3&`MbL<@qRda!}X9q*?h@)^s;xq4*aqn*sgp-g07s^o8ce_U$HPw8@ z!lOw7S$jJbl8wC`0u*QNHYE^C?=a*fk;*=1d?XSSf@%U!Vz`p3bppCJ1Oi<^HoVi+ z$1Ie(Vn0EYf?U4R1S6@VffGc7n2BubKRF_d0H+jikdSbcCjEaufD9y&6qI#=C@G3& z&+k=23F$8`i5MG+{xT|v5XYBDE0%g@BHO%|w3JL4!u`^Oh=wUG6iX%%6?#;S{j#B~ zceoVk?Uy1m`>^cF+heNsR+re@u$6_9B#6-%lwF{?WVe7xdP0eafU9mnF^F==gvIkv z7$ZVetME}0LM(Kvr{qee9E5T?d`Jn`1JZt>9IZTn3%x4w-MA@!xZABk#Ktf<d_kB1YRx-J@UXEF@f-SzT%bEHSu{N`+X`0j4T5e6-k8^w4ThHC; z%8R@^ZFe;7tmduXje5J1TeF_A^5kesSCf^c TXGasa@#~@6seE+!n!fT6k%uEM literal 0 HcmV?d00001 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}