Compare commits

..

6 Commits

Author SHA1 Message Date
Westech Admin 17584d0002 cleanup: remove broken hyphen-named pages 2026-05-21 01:09:59 +00:00
Westech Admin bb5c8143fc fix: rename page templates to underscores 2026-05-21 00:00:46 +00:00
Westech Admin 2079e27402 fix: Load.customer_name fetch_from points to customer.customer_name 2026-05-20 23:40:03 +00:00
Westech Admin efc06dd98a fix: Load.customer points to Customer, data_status D0/D1 2026-05-20 23:32:54 +00:00
Westech Admin 5be239fced fix: Pallet data_status options to D0/D1 only 2026-05-20 23:30:09 +00:00
Westech Admin 311e74fe18 fix: data_status D0/D1 only, add fields to intake page 2026-05-20 23:28:08 +00:00
16 changed files with 33 additions and 5 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -3
View File
@@ -1620,7 +1620,7 @@
"oldfieldname": null,
"fieldtype": "Select",
"oldfieldtype": null,
"options": "\nActive\nCleared\nN/A",
"options": "\nD0\nD1",
"search_index": 0,
"show_dashboard": 0,
"hidden": 0,
@@ -12239,7 +12239,7 @@
"oldfieldname": null,
"fieldtype": "Link",
"oldfieldtype": null,
"options": "Supplier",
"options": "Customer",
"search_index": 0,
"show_dashboard": 0,
"hidden": 0,
@@ -12352,7 +12352,7 @@
"is_virtual": 0,
"sort_options": 0,
"link_filters": null,
"fetch_from": "customer.supplier_name",
"fetch_from": "customer.customer_name",
"show_on_timeline": 0,
"make_attachment_public": 0,
"documentation_url": null,
@@ -63,6 +63,29 @@
<input type="text" id="cust-hours" class="form-control">
</div>
</div>
<div class="row" style="margin-top:10px;">
<div class="col-md-4">
<label>Data Status</label>
<select id="pallet-data-status" class="form-control">
<option value="D0">D0 - Unknown</option>
<option value="D1">D1 - Contains Data</option>
</select>
</div>
<div class="col-md-4">
<label>Status</label>
<select id="pallet-status" class="form-control">
<option value="Received">Received</option>
<option value="Sorting">Sorting</option>
<option value="Processing">Processing</option>
<option value="Complete">Complete</option>
<option value="Shipped">Shipped</option>
</select>
</div>
<div class="col-md-4">
<label>Inbound Weight (lbs)</label>
<input type="text" id="pallet-weight" class="form-control">
</div>
</div>
<div class="row" style="margin-top:15px;">
<div class="col-md-12">
<button id="btn-save-cust" class="btn btn-success">Save Customer</button>
@@ -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) {
@@ -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}