Основной бизнес-процесс

Оформление накладных
This commit is contained in:
2024-12-03 17:46:41 +03:00
parent 453801f2e9
commit ee6a2f9756
9 changed files with 77 additions and 48 deletions

View File

@@ -0,0 +1 @@
INSERT INTO `waybill` (`user_id`,`waybill_date`, `total`) VALUES ($e_user_id, '$e_order_date', $e_total);

View File

@@ -1 +1 @@
SELECT work_id, name, price, material, count FROM workpiece
SELECT work_id, name, price, material, count FROM workpiece

View File

@@ -0,0 +1,2 @@
INSERT INTO `waybill_lines` VALUES ($e_order_id, $e_prod_id,
(SELECT price FROM workpiece WHERE work_id = $e_prod_id), $e_amount);

View File

@@ -0,0 +1,3 @@
SELECT `work_id`, `name`, `price`, `weight`
FROM `workpiece`
WHERE `work_id` = $work_id;