summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 11:54:56 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-16 11:54:56 +0800
commit6f2fd8bdaa09ff2769819242498d5648036a5432 (patch)
tree358cb0a675274f071ba8f039691237d9293d42e2
parent53067feec0e674026e6d6cc8635bbf586b28c1f2 (diff)
parent22dc7bbfd5247cfcc0a65f5bdb6245f2c378e9d5 (diff)
Merge branch 'master' into sicepat
-rw-r--r--config/pikul_cost.tag6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/pikul_cost.tag b/config/pikul_cost.tag
index 60fccca..da09040 100644
--- a/config/pikul_cost.tag
+++ b/config/pikul_cost.tag
@@ -18,9 +18,9 @@ sub {
}
use Pikul;
Pikul::init($company, \@provisions);
- my $cost = Pikul::cost($origin, $Tag->query({sql => "SELECT code FROM $table WHERE district='"
- . $district . "' AND city='" . $city . "' AND province='" . $province . "'",
- wantarray => 1})->[0]->[0], $weight, $service);
+ my $cost = Pikul::cost($origin, $Tag->query({sql => "SELECT code FROM $table WHERE \
+ district='$district' AND city='$city' AND province='$province'",
+ wantarray => 1})->[0]->[0] || '', $weight, $service);
Pikul::cleanup();
return $cost;
}