diff --git a/westech_r2/page/intake/__init__.py b/westech_r2/page/intake/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/westech_r2/page/intake/intake.css b/westech_r2/page/intake/intake.css new file mode 100644 index 0000000..c5f45ab --- /dev/null +++ b/westech_r2/page/intake/intake.css @@ -0,0 +1,11 @@ +.intake-station .card { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; } +.intake-station .card-header { padding: 15px; } +.intake-station .card-body { padding: 20px; } +.intake-station .form-group { margin-bottom: 15px; } +.intake-station .form-control { border-radius: 4px; padding: 8px 12px; font-size: 16px; } +.intake-station .form-control:focus { border-color: #6f42c1; box-shadow: 0 0 0 0.2rem rgba(111,66,193,0.25); } +.intake-station label { font-weight: 600; margin-bottom: 4px; } +.intake-station h5 { margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e0e0e0; } +.intake-station .table th { background: #f8f9fa; } +.intake-station .btn-primary { background: linear-gradient(135deg, #6f42c1, #28a745) !important; border: none !important; } +.intake-station .label { font-size: 0.85em; } \ No newline at end of file diff --git a/westech_r2/page/intake/intake.js b/westech_r2/page/intake/intake.js new file mode 100644 index 0000000..0242040 --- /dev/null +++ b/westech_r2/page/intake/intake.js @@ -0,0 +1,772 @@ +frappe.pages['intake'].on_page_load = function(wrapper) { + var page = frappe.ui.make_app_page({ + parent: wrapper, + title: 'Intake Station', + single_column: true + }); + + page.set_primary_action('New Intake', function() { + show_intake_form(); + }, 'add'); + + page.add_inner_button('Refresh', function() { + load_recent_pallets(); + }); + + $(wrapper).find('.layout-main-section').html(` +
| Status | +Customer # | +Driver | +Received | +RED/R2 | +Items | +Weight | +Actions | +
|---|---|---|---|---|---|---|---|
| Loading... | |||||||