Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fetch lines after add all lines in order or invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
kamel committed Jul 6, 2022
1 parent 1419b28 commit b43b774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions class/business/eCommerceSynchro.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4688,6 +4688,8 @@ public function synchronizeOrder($order_data, $dont_synchronize_products = false
unset($this->eCommerceProduct);
}
}
if (method_exists($order, 'fetch_lines')) $order->fetch_lines();
elseif (method_exists($order, 'getLinesArray')) $order->getLinesArray();
}

// Set amount paid warning
Expand Down Expand Up @@ -5282,6 +5284,8 @@ public function synchronizeInvoiceFromOrder($order_data, $dont_synchronize_produ
}
}
}
if (method_exists($invoice, 'fetch_lines')) $invoice->fetch_lines();
elseif (method_exists($invoice, 'getLinesArray')) $invoice->getLinesArray();

// Get order internal contacts
$internal_contact_list = $order->liste_contact(-1, 'internal');
Expand Down

0 comments on commit b43b774

Please sign in to comment.