From 52dc746bf9d758dd58271304411ed4d37f42d7fa Mon Sep 17 00:00:00 2001 From: Mike Virata-Stone Date: Tue, 11 Jun 2024 12:44:59 -0700 Subject: [PATCH] Fix PPV credit/debit values --- .../net_suite_integration/purchase_order_exporter.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/net_suite_integration/purchase_order_exporter.rb b/app/models/net_suite_integration/purchase_order_exporter.rb index d24317b4..a7f99605 100644 --- a/app/models/net_suite_integration/purchase_order_exporter.rb +++ b/app/models/net_suite_integration/purchase_order_exporter.rb @@ -184,9 +184,9 @@ def add_line_items # rubocop:disable Metrics/AbcSize, Metrics/MethodLength item.department = { internal_id: PROGRAMS_DEPARTMENT_ID } if @total_ppv < 0 - item.debit = -@total_ppv + item.credit = -@total_ppv else - item.credit = @total_ppv + item.debit = @total_ppv end item.custom_field_list.custcol_cseg_npo_exp_type = @@ -204,9 +204,9 @@ def add_line_items # rubocop:disable Metrics/AbcSize, Metrics/MethodLength item.department = { internal_id: PROGRAMS_DEPARTMENT_ID } if @total_ppv < 0 - item.credit = -@total_ppv + item.debit = -@total_ppv else - item.debit = @total_ppv + item.credit = @total_ppv end item.custom_field_list.custcol_cseg_npo_exp_type =