// Supply Orders CSV Import

This commit is contained in:
bMancone
2011-12-29 16:24:24 +00:00
parent 822ad7a155
commit 0d4ce7a269
8 changed files with 274 additions and 29 deletions
@@ -1971,6 +1971,9 @@ class AdminSupplyOrdersControllerCore extends AdminController
$entries = $supply_order->getEntriesCollection($supply_order->id_lang);
// updates SupplyOrder so that it is not a template anymore
$ref = $supply_order->reference;
$ref .= ' ('.date('H:i:s').')';
$supply_order->reference = $ref;
$supply_order->is_template = 0;
$supply_order->id = (int)0;
$supply_order->save();