@dascompany/product 3.2.5 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/SQL.json
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"orders": {
|
|
69
69
|
"select": "SELECT * FROM orders.orders",
|
|
70
70
|
"insert": "INSERT INTO orders.orders( id, email, price, client_id, delivery_details_id, company_details_id, payment_details_id, invoice ) VALUES ($order_id::BIGINT, $email::TEXT, $price::DOUBLE PRECISION, $client_id::BIGINT, $delivery_details_id::BIGINT , $company_details_id::BIGINT, $payment_details_id::BIGINT, $invoice::BOOL )",
|
|
71
|
-
"update": "UPDATE orders.orders SET price = $price::DOUBLE PRECISION, delivery_details_id = $delivery_details_id::BIGINT, company_details_id = $company_details_id::BIGINT, payment_details_id = $payment_details_id::BIGINT, zsi_id = $zsi_id::BIGINT, invoice = $invoice::
|
|
71
|
+
"update": "UPDATE orders.orders SET price = $price::DOUBLE PRECISION, delivery_details_id = $delivery_details_id::BIGINT, company_details_id = $company_details_id::BIGINT, payment_details_id = $payment_details_id::BIGINT, zsi_id = $zsi_id::BIGINT, invoice = $invoice::BOOL WHERE id = $id::BIGINT",
|
|
72
72
|
"count": "SELECT COUNT (*) AS TOTAL_ROWS FROM orders.orders",
|
|
73
73
|
"selectNextId": "SELECT nextval('orders.orders_id'::regclass)"
|
|
74
74
|
},
|
|
@@ -37,10 +37,10 @@ export default class OrdersTable extends Table {
|
|
|
37
37
|
query.bindParameter('email', order.getEmail());
|
|
38
38
|
query.bindParameter('price', order.getPrice());
|
|
39
39
|
query.bindParameter('client_id', order.getClientId());
|
|
40
|
-
query.bindParameter('invoice', order.isInvoice());
|
|
41
40
|
this.bindDetailsParameters(query, order);
|
|
42
41
|
}
|
|
43
42
|
bindDetailsParameters(query, order) {
|
|
43
|
+
query.bindParameter('invoice', order.isInvoice());
|
|
44
44
|
query.bindParameter('delivery_details_id', order.getDeliveryDetailsId());
|
|
45
45
|
query.bindParameter('company_details_id', order.getCompanyDetailsId());
|
|
46
46
|
query.bindParameter('payment_details_id', order.getPaymentDetailsId());
|