Skip to content

Commit

Permalink
Fix PPV credit/debit values
Browse files Browse the repository at this point in the history
  • Loading branch information
smellsblue committed Jun 11, 2024
1 parent 1032db5 commit 52dc746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/net_suite_integration/purchase_order_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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 =
Expand Down

0 comments on commit 52dc746

Please sign in to comment.