diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-17 16:02:04 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-17 16:02:04 +0800 |
commit | f09a04b548164a6571234b9800e5e29e185595db (patch) | |
tree | f45ad760dcb64eab1bd333454269904faa3d13bc | |
parent | 738aa65629d7b552762cc825829ab5871cd99c4d (diff) |
Minimum subtotal is 1000 for Anteraja
-rw-r--r-- | anteraja.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |