From 7bf894f6e0270a4803a1f2dfafa955550e131adc Mon Sep 17 00:00:00 2001 From: bMancone Date: Thu, 29 Dec 2011 16:24:24 +0000 Subject: [PATCH] // Supply Orders CSV Import --- .../themes/default/template/import/form.tpl | 27 ++- classes/ProductSupplier.php | 2 +- classes/Supplier.php | 19 +- classes/stock/SupplyOrder.php | 2 +- controllers/admin/AdminImportController.php | 228 +++++++++++++++++- .../admin/AdminSupplyOrdersController.php | 3 + .../supply_orders_details_import.csv | 17 ++ docs/csv_import/supply_orders_import.csv | 5 +- 8 files changed, 274 insertions(+), 29 deletions(-) create mode 100644 docs/csv_import/supply_orders_details_import.csv diff --git a/admin-dev/themes/default/template/import/form.tpl b/admin-dev/themes/default/template/import/form.tpl index bc23d94c5..d2d586c5f 100644 --- a/admin-dev/themes/default/template/import/form.tpl +++ b/admin-dev/themes/default/template/import/form.tpl @@ -145,14 +145,15 @@ - {if count($files_to_import)}
+ {if count($files_to_import)} + {/if}   Uplaod {l s='Upload'}
@@ -192,12 +193,15 @@
-
+

{l s='Note that the category import does not support categories of the same name.'}

{l s='Note that you can have serveral products with the same reference.'}

- {else} -
+
+

{l s='Importing Supply Order Details will first reset the products ordered.'}

+
+ {if !count($files_to_import)} +
{l s='There is no CSV file available, please upload one using the form above.'}

{l s='You can read informations on CSV import at:'} http://www.prestashop.com/wiki/Troubleshooting_6/

@@ -228,13 +232,26 @@