Skip to content

Commit

Permalink
fix(netsuite): Add amount to invoice line items
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad committed Nov 27, 2024
1 parent 9b2b03b commit 3927cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,23 @@
'account' => '33',
'quantity' => 0.0,
'rate' => 0.0,
'amount' => 2.0,
'taxdetailsreference' => anything
},
{
'item' => '4',
'account' => '44',
'quantity' => 0.0,
'rate' => 0.0,
'amount' => 2.0,
'taxdetailsreference' => anything
},
{
'item' => 'm2',
'account' => 'm22',
'quantity' => 2,
'rate' => 4.1212121212334,
'amount' => 2.0,
'taxdetailsreference' => anything
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,23 @@
'account' => '33',
'quantity' => 0.0,
'rate' => 0.0,
'amount' => 100.0,
'taxdetailsreference' => fee_sub.id
},
{
'item' => '4',
'account' => '44',
'quantity' => 0.0,
'rate' => 0.0,
'amount' => 2.0,
'taxdetailsreference' => minimum_commitment_fee.id
},
{
'item' => 'm2',
'account' => 'm22',
'quantity' => 2,
'rate' => 4.1212121212334,
'amount' => 2.0,
'taxdetailsreference' => charge_fee.id
},
{
Expand Down

0 comments on commit 3927cd1

Please sign in to comment.