Skip to content

Commit

Permalink
fix: include receipt links in all line items for cc charges (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent c0309e8 commit 0aea0ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/netsuite/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,11 @@ def create_credit_card_charge(expense_group, task_log_id, last_export):
if expense.amount < 0:
refund = True

attachment_link = load_attachments(netsuite_connection, expense, expense_group, credit_card_charge_object)
for expense in expense_group.expenses.all():
attachment_link = load_attachments(netsuite_connection, expense, expense_group, credit_card_charge_object)

if attachment_link:
attachment_links[expense.expense_id] = attachment_link
if attachment_link:
attachment_links[expense.expense_id] = attachment_link

created_credit_card_charge = netsuite_connection.post_credit_card_charge(
credit_card_charge_object, credit_card_charge_lineitems_objects, general_mappings, attachment_links, refund
Expand Down

0 comments on commit 0aea0ec

Please sign in to comment.