remove po
This commit is contained in:
@@ -137,8 +137,8 @@ router.post('/orders', (req, res) => {
|
||||
const orderInfo = db
|
||||
.prepare(
|
||||
`INSERT INTO service_orders
|
||||
(order_number, customer_id, clock_id, job_type, date_in, due_date, cust_po, terms)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`
|
||||
(order_number, customer_id, clock_id, job_type, date_in, due_date, terms)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?)`
|
||||
)
|
||||
.run(
|
||||
orderNumber,
|
||||
@@ -147,7 +147,6 @@ router.post('/orders', (req, res) => {
|
||||
b.job_type || null,
|
||||
b.date_in || todayStr(),
|
||||
b.due_date || null,
|
||||
b.cust_po || null,
|
||||
b.terms || null
|
||||
);
|
||||
|
||||
@@ -220,7 +219,7 @@ router.post('/orders/:id', (req, res) => {
|
||||
db.prepare(
|
||||
`UPDATE service_orders SET
|
||||
job_type = ?, status = ?,
|
||||
date_out = ?, due_date = ?, cust_po = ?, terms = ?, internal_note = ?,
|
||||
date_out = ?, due_date = ?, terms = ?, internal_note = ?,
|
||||
tax = ?, shipping = ?, pickup_delivery = ?, service_call = ?, disposal = ?, amount_paid = ?
|
||||
WHERE id = ?`
|
||||
).run(
|
||||
@@ -228,7 +227,6 @@ router.post('/orders/:id', (req, res) => {
|
||||
STATUSES.includes(b.status) ? b.status : 'OPEN',
|
||||
b.date_out || null,
|
||||
b.due_date || null,
|
||||
b.cust_po || null,
|
||||
b.terms || null,
|
||||
b.internal_note || null,
|
||||
parseCents(b.tax),
|
||||
|
||||
Reference in New Issue
Block a user