From 798184c6bc64c3f48161398ed4607d52df945c4f Mon Sep 17 00:00:00 2001 From: Mike Virata-Stone Date: Thu, 2 May 2024 20:41:28 -0700 Subject: [PATCH] Update to correct account ID, part 2 --- app/models/net_suite_integration/purchase_order_exporter.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/net_suite_integration/purchase_order_exporter.rb b/app/models/net_suite_integration/purchase_order_exporter.rb index f3152826..2363e596 100644 --- a/app/models/net_suite_integration/purchase_order_exporter.rb +++ b/app/models/net_suite_integration/purchase_order_exporter.rb @@ -2,9 +2,8 @@ module NetSuiteIntegration class PurchaseOrderExporter GRATEFUL_GARMENT_SUBSIDIARY_ID = 1 ACCOUNTS_PAYABLE_ACCOUNT_ID = 529 # 2010 Payables : Accounts Payable - INVENTORY_OUT_TO_AGENCIES_ACCOUNT_ID = 894 # 7010 Inventory out to Agencies - PPV_ACCOUNT_ID = 1056 # 6020 Cost of Goods Sold : Purchase Price Variance INVENTORY_ASSET_ACCOUNT_ID = 214 # 4999 Inventory Asset + PPV_ACCOUNT_ID = 1056 # 6020 Cost of Goods Sold : Purchase Price Variance INVENTORY_CATEGORY_ID = 43 # Inventory PROGRAM_SERVICES_ID = 2 PROGRAM_SERVICES_TYPE_ID = 88 @@ -97,7 +96,7 @@ def add_vendor_bill_items # rubocop:disable Metrics/AbcSize purchase.value_by_program.each do |program, total_value| vendor_bill_record.expense_list << NetSuite::Records::VendorBillExpense.new.tap do |item| item.category = { internal_id: INVENTORY_CATEGORY_ID } - item.account = { internal_id: INVENTORY_OUT_TO_AGENCIES_ACCOUNT_ID } + item.account = { internal_id: INVENTORY_ASSET_ACCOUNT_ID } item.department = { internal_id: PROGRAMS_DEPARTMENT_ID } item.amount = total_value item.custom_field_list.custcol_cseg_npo_exp_type =