Skip to content

Commit

Permalink
fix(netsuite): Add tranid to netsuite create invoice payload (#2739)
Browse files Browse the repository at this point in the history
## Context

NetSuite Sync Invoice format is wrong and failing.

## Description

Fix netsuite invoice payload by:
 - re-add: `tranid`
  • Loading branch information
ivannovosad authored Oct 25, 2024
1 parent 69ec679 commit c9bb7bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def body

def columns
result = {
'tranid' => invoice.id,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
'type' => 'invoice',
'isDynamic' => true,
'columns' => {
'tranid' => invoice.id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
'entity' => integration_customer.external_customer_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
context 'when tax nexus is not present' do
let(:columns) do
{
'tranid' => invoice.id,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
Expand Down Expand Up @@ -324,6 +325,7 @@

let(:columns) do
{
'tranid' => invoice.id,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
Expand All @@ -346,6 +348,7 @@

let(:columns) do
{
'tranid' => invoice.id,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
Expand All @@ -368,6 +371,7 @@
context 'when tax item is not mapped' do
let(:columns) do
{
'tranid' => invoice.id,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
'type' => 'salesorder',
'isDynamic' => true,
'columns' => {
'tranid' => invoice.id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
'entity' => integration_customer.external_customer_id,
Expand Down

0 comments on commit c9bb7bc

Please sign in to comment.