From 20e502e0cb8ff0fca5825ae5483a38d2fedb3ee5 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 26 Jan 2026 11:44:55 -0300 Subject: [PATCH] refactor(shipping): simplify dimensional calculations and remove unused script --- .../{calculate-shipping.bas => calculate-dimensions.bas} | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) rename store-server.gbai/store-server.gbdialog/{calculate-shipping.bas => calculate-dimensions.bas} (75%) diff --git a/store-server.gbai/store-server.gbdialog/calculate-shipping.bas b/store-server.gbai/store-server.gbdialog/calculate-dimensions.bas similarity index 75% rename from store-server.gbai/store-server.gbdialog/calculate-shipping.bas rename to store-server.gbai/store-server.gbdialog/calculate-dimensions.bas index 51e75de..e808a21 100644 --- a/store-server.gbai/store-server.gbdialog/calculate-shipping.bas +++ b/store-server.gbai/store-server.gbdialog/calculate-dimensions.bas @@ -21,8 +21,5 @@ volumetric_weight = volume / 5000 actual_weight = product.gross_weight * quantity billable = MAX actual_weight, volumetric_weight -ground_cost = 5.99 + billable * 1.5 -express_cost = 12.99 + billable * 2.5 -overnight_cost = 24.99 + billable * 4.0 -RETURN WITH product_id AS product_id, quantity AS quantity, length AS product.length, width AS product.width, height AS product.height, weight AS product.gross_weight, volume_cm3 AS volume, billable_weight_kg AS billable, ground_cost AS ground_cost, ground_days AS "5-7", express_cost AS express_cost, express_days AS "2-3", overnight_cost AS overnight_cost, overnight_days AS "1" +RETURN WITH product_id AS product_id, quantity AS quantity, length AS product.length, width AS product.width, height AS product.height, weight AS product.gross_weight, volume_cm3 AS volume, billable_weight_kg AS billable