summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--catalog.cfg1
-rw-r--r--config/pikul_cost.tag5
-rw-r--r--products/ship/shipping.asc4
3 files changed, 10 insertions, 0 deletions
diff --git a/catalog.cfg b/catalog.cfg
index 8974467..3dde12d 100644
--- a/catalog.cfg
+++ b/catalog.cfg
@@ -758,3 +758,4 @@ Jobs log __LOGDIR__/jobs.log
Jobs base_directory etc/jobs
Variable PIKUL_ANTERAJA 0
+Variable PIKUL_ANTERAJA 1
diff --git a/config/pikul_cost.tag b/config/pikul_cost.tag
index 75e84b9..be1021d 100644
--- a/config/pikul_cost.tag
+++ b/config/pikul_cost.tag
@@ -10,6 +10,11 @@ sub {
"$Global::Variable->{ANTERAJA_SECRET_ACCESS_KEY}"
);
$table = 'anteraja';
+ } elsif ($company == $Global::Variable->{PIKUL_SICEPAT}) {
+ @provisions = (
+ "$Global::Variable->{SICEPAT_API_KEY}"
+ );
+ $table = 'sicepat_destination';
}
use Pikul;
Pikul::init($company, \@provisions);
diff --git a/products/ship/shipping.asc b/products/ship/shipping.asc
index fab032e..238f819 100644
--- a/products/ship/shipping.asc
+++ b/products/ship/shipping.asc
@@ -1,3 +1,7 @@
anteraja: Anteraja Regular
crit weight
cost f [pikul_cost company=0 origin='@_ANTERAJA_ORIGIN_@' district='[evalue address3]' city='[evalue city]' province='[evalue state]' weight=@@TOTAL@@ service='REG']
+
+sicepat: SiCepat Regular
+ crit weight
+ cost f [pikul_cost company=1 origin='@_SICEPAT_ORIGIN_@' district='[evalue address3]' city='[evalue city]' province='[evalue state]' weight=@@TOTAL@@ service='REG']