diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-18 10:53:32 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-07-18 10:53:32 +0800 |
commit | b167efeabf9b6292c6c7a15f7a83b48c2eb86a1b (patch) | |
tree | b2a96f605aabfb23af0cd21d6e419e1ff3f9a749 /anteraja.c | |
parent | b82ced0aaf6019f1893190d5fadfc1537f996dd9 (diff) |
Weight times quantity to make up total
Diffstat (limited to 'anteraja.c')
-rw-r--r-- | anteraja.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ void anteraja_order(const char *order_number, const char *service, const char *s double weight = atof(items[i][WEIGHT]) * 1000.0; if (weight < 100.0) weight = 100.0; - total_weight += weight; + total_weight += weight * quantity; sprintf(item, ORDER_ITEM, items[i][DESCRIPTION], quantity, (int)price, (int)weight); if (json) json = realloc(json, strlen(json) + length + 1); |