summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/pikul_order.tag6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/pikul_order.tag b/config/pikul_order.tag
index 181923e..29541a9 100644
--- a/config/pikul_order.tag
+++ b/config/pikul_order.tag
@@ -34,7 +34,7 @@ sub {
}
use Pikul;
Pikul::init($company, \@provisions);
- my $waybill = Pikul::order(
+ my $tracking_number = Pikul::order(
$order_number,
$service,
"$::Variable->{COMPANY}",
@@ -56,6 +56,8 @@ sub {
$subtotal
);
Pikul::cleanup();
- return $waybill;
+ $Tag->query({sql => "UPDATE transactions SET tracking_number='$tracking_number' WHERE \
+ code='$order_number'"});
+ return $tracking_number;
}
EOR