add whatsapp contact button and prepayment/full payment badge
Build and Push Docker Images / build-backend (push) Has been cancelled
Build and Push Docker Images / build-frontend (push) Has been cancelled

This commit is contained in:
Egor Pozharov
2026-06-17 13:57:54 +05:00
parent d1efebbb34
commit 906563c7c3
17 changed files with 191 additions and 41 deletions
+6 -5
View File
@@ -32,9 +32,9 @@ SELECT * FROM deliveries WHERE date = $1;
INSERT INTO deliveries (
date, pickup_location, pickup_location_2, warehouse_request_source, warehouse_request_source_2, product_name, product_name_2,
customer_name, address, street, house, apartment, entrance, floor,
phone, additional_phone, has_elevator, service_info, comment
phone, additional_phone, has_elevator, payment_status, service_info, comment
)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)
RETURNING *;
-- name: GetDeliveryByID :one
@@ -62,10 +62,11 @@ UPDATE deliveries SET
phone = $15,
additional_phone = $16,
has_elevator = $17,
service_info = $18,
comment = $19,
payment_status = $18,
service_info = $19,
comment = $20,
updated_at = NOW()
WHERE id = $20;
WHERE id = $21;
-- name: GetDeliveryCount :many
SELECT COUNT(*) as count, date FROM deliveries