From c43cbcd241694ca62109b733c68c7af50419d56e Mon Sep 17 00:00:00 2001 From: Ivan Novosad Date: Fri, 15 Nov 2024 11:00:45 +0100 Subject: [PATCH] fix(netsuite): Add amount to invoice line items --- .../integrations/aggregator/invoices/payloads/netsuite.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/integrations/aggregator/invoices/payloads/netsuite.rb b/app/services/integrations/aggregator/invoices/payloads/netsuite.rb index dcacc69e752..6020c4d9a90 100644 --- a/app/services/integrations/aggregator/invoices/payloads/netsuite.rb +++ b/app/services/integrations/aggregator/invoices/payloads/netsuite.rb @@ -103,6 +103,7 @@ def item(fee) 'account' => mapped_item.external_account_code, 'quantity' => fee.units, 'rate' => limited_rate(fee.precise_unit_amount), + 'amount' => limited_rate(amount(fee.amount_cents, resource: invoice)), 'taxdetailsreference' => fee.id } end