From 9a128e8bfd4f08c24e12b4ab7387efb3001d629f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 9 Jun 2016 14:37:56 +0200 Subject: [PATCH] =?utf8?q?Order:=20POD=20aufger=C3=A4umt,=20reformatiert,?= =?utf8?q?=20Bugs=20notiert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 144 +++++++++++++++++++++++------------------ 1 file changed, 81 insertions(+), 63 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 508fdfef6..331855098 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -847,7 +847,7 @@ sub _new_item { # recalculate prices and taxes # -# Using the PriceTaxCalclulator. Store linetotals in the item objects. +# Using the PriceTaxCalculator. Store linetotals in the item objects. sub _recalc { my ($self) = @_; @@ -1058,36 +1058,44 @@ The aim is to provide the user a better expirience and a faster flow of work. Also the code should be more readable, more reliable and better to maintain. -=head2 key features +=head2 Key Features -=over 2 +=over 4 =item * + One input row, so that input happens every time at the same place. =item * + Use of pickers where possible. =item * + Possibility to enter more than one item at once. =item * + Save order only on "save" (and "save and delivery order"-workflow). No -hidden save on "print" or "email". +hidden save on "print" or "email". =item * + Item list in a scrollable area, so that the workflow buttons stay at the bottom. =item * + Reordering item rows with drag and drop is possible. Sorting item rows is possible (by partnumber, description, qty, sellprice and discount for now). =item * -No "update" is necessary. All entries and calculations are managed -with ajax-calls and the page does only reload on "save". + +No C is necessary. All entries and calculations are managed +with ajax-calls and the page does only reload on C. =item * + User can see changes immediately, because of the use of java script and ajax. @@ -1095,128 +1103,138 @@ and ajax. =head1 CODE -=head2 layout +=head2 Layout -=over 2 +=over 4 -=item * -SL/Controller/Order.pm: the controller +=item * C -=item * -template/webpages/order/form.html: main form +the controller -=item * -template/webpages/order/tabs/basic_data.html: main tab for basic_data +=item * C