summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-24 18:15:08 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-24 18:15:08 +0800
commit3dd8b4fd7b317c78872a251fd1ed68d17b54d834 (patch)
treeed4958c19fdea968f038d031697b515789718403
parentc6df3badb5865c6bc296d1addbcf67e6e8e4ff1b (diff)
Destination code relies on district only
-rw-r--r--config/pikul.tag4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/pikul.tag b/config/pikul.tag
index 336d6ef..5f49ff0 100644
--- a/config/pikul.tag
+++ b/config/pikul.tag
@@ -57,8 +57,8 @@ sub {
$origins[$company] = $::Variable->{SICEPAT_ORIGIN}
|| $Global::Variable->{SICEPAT_ORIGIN};
$destinations[$company] = $Tag->query({sql => "SELECT code FROM sicepat_destination\
- WHERE district='$district' AND city='$city' AND \
- province='$province'", wantarray => 1})->[0]->[0] || '';
+ WHERE district LIKE '%$district%'",
+ wantarray => 1})->[0]->[0] || '';
$code_prefixes[$company] = 'sicepat_';
$name_prefixes[$company] = 'SiCepat ';
}