From 25ac9167627f6dd12589dfa6f69dfd280cc5aa51 Mon Sep 17 00:00:00 2001 From: Ivan Novosad Date: Fri, 29 Nov 2024 15:53:28 +0100 Subject: [PATCH] fix(netsuite): Fix quantity sent to netsuite --- .../integrations/aggregator/invoices/payloads/netsuite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/integrations/aggregator/invoices/payloads/netsuite.rb b/app/services/integrations/aggregator/invoices/payloads/netsuite.rb index 6020c4d9a90..f9d0c62b7a2 100644 --- a/app/services/integrations/aggregator/invoices/payloads/netsuite.rb +++ b/app/services/integrations/aggregator/invoices/payloads/netsuite.rb @@ -101,7 +101,7 @@ def item(fee) { 'item' => mapped_item.external_id, 'account' => mapped_item.external_account_code, - 'quantity' => fee.units, + 'quantity' => limited_rate(fee.units), 'rate' => limited_rate(fee.precise_unit_amount), 'amount' => limited_rate(amount(fee.amount_cents, resource: invoice)), 'taxdetailsreference' => fee.id