summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-08 15:46:55 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-08 15:46:55 +0800
commite2f0e1926448ba70162d2c9d59b0e338c49f939f (patch)
treea4f7ecaa7ef0d83c1bbe326e5af62484836e1e4b
parent5c1b91c203f80d88eae71c5930a58f16d408d603 (diff)
Weight unit will be in kgs
-rw-r--r--products/ship/shipping.asc4
-rw-r--r--usertag/anteraja_cost.tag2
2 files changed, 3 insertions, 3 deletions
diff --git a/products/ship/shipping.asc b/products/ship/shipping.asc
index fced578..8011be1 100644
--- a/products/ship/shipping.asc
+++ b/products/ship/shipping.asc
@@ -1,5 +1,5 @@
anteraja: Anteraja
crit weight
- min 1000
- max 50000
+ min 1
+ max 50
cost f [anteraja_cost district='[evalue address3]' city='[evalue city]' province='[evalue state]' weight=@@TOTAL@@]
diff --git a/usertag/anteraja_cost.tag b/usertag/anteraja_cost.tag
index b1c03c9..8c840f1 100644
--- a/usertag/anteraja_cost.tag
+++ b/usertag/anteraja_cost.tag
@@ -11,6 +11,6 @@ sub {
my $destination = $Tag->query({sql => "SELECT code FROM shipping WHERE district='" . $district
. "' AND city='" . $city . "' AND province='" . $province . "'",
wantarray=> 1})->[0]->[0];
- return $Tag->pikul_cost(0, \@provisions, "$origin", "$destination", $weight, 'REG');
+ return $Tag->pikul_cost(0, \@provisions, "$origin", "$destination", $weight * 1000, 'REG');
}
EOR