Skip to content

Commit

Permalink
fix(netsuite): Change params in the invoice payload (#2752)
Browse files Browse the repository at this point in the history
## Description

Change some of the params of invoice payload.
  • Loading branch information
ivannovosad authored Oct 29, 2024
1 parent d8c51c8 commit b38a159
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ def body

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

let(:columns) do
{
'tranid' => invoice.id,
'tranid' => invoice.number,
'entity' => integration_customer.external_customer_id,
'taxregoverride' => true,
'taxdetailsoverride' => true,
'otherrefnum' => invoice.number,
'custbody_lago_id' => invoice.id,
'custbody_ava_disable_tax_calculation' => true,
'custbody_lago_invoice_link' => invoice_link,
Expand All @@ -348,11 +346,10 @@

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

0 comments on commit b38a159

Please sign in to comment.