vault backup: 2023-11-08 13:27:44

This commit is contained in:
Paul Trowbridge 2023-11-08 13:27:44 -05:00
parent 8555b4bc66
commit 56c2e9f8fb

4
api.ts
View File

@ -41,8 +41,6 @@ router.get('/code_price/:billcode/:shipcode/:partcode/:qty', async (ctx) => {
const shipcode = ctx.params.shipcode;
const qty = ctx.params.qty;
//console.log(partcode)
//console.log(customer)
const result = await client.queryObject({args: [billcode, shipcode, partcode, qty], text: query} );
const procd = apply_guidance(result.rows[0]["doc"])
ctx.response.body = procd;
@ -57,8 +55,6 @@ router.get('/dseg_price/:billcode/:shipcode/:stlc/:dseg/:qty', async (ctx) => {
const shipcode = ctx.params.shipcode;
const qty = ctx.params.qty;
//console.log(dseg);
//console.log(customer)
const result = await client.queryObject({args: [billcode, shipcode, stlc, dseg, qty], text: query_dseg} );
const procd = apply_guidance(result.rows[0]["doc"])
ctx.response.body = procd;