summaryrefslogtreecommitdiff
path: root/anteraja.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 16:02:04 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-17 16:02:04 +0800
commitf09a04b548164a6571234b9800e5e29e185595db (patch)
treef45ad760dcb64eab1bd333454269904faa3d13bc /anteraja.c
parent738aa65629d7b552762cc825829ab5871cd99c4d (diff)
Minimum subtotal is 1000 for Anteraja
Diffstat (limited to 'anteraja.c')
-rw-r--r--anteraja.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/anteraja.c b/anteraja.c
index ffd739a..d743a54 100644
--- a/anteraja.c
+++ b/anteraja.c
@@ -139,7 +139,7 @@ void anteraja_order(const char *order_number, const char *service, const char *s
sprintf(*post, ORDER_POST, prefix, order_number, service, (int)total_weight, sender_name,
sender_phone, origin, sender_address, sender_postal, receiver_name, receiver_phone,
destination, receiver_address, receiver_postal, json, insurance ? "true" : "false",
- (int)subtotal);
+ subtotal < 1000.0 ? 1000 :(int)subtotal);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, *post);
}