[#34431513] Verfügbarkeit eines Benutzers rechnet sich über Summe alle Partitionen

Due to leihs_feature_branches #326

Squashed commit of the following:

commit cfda40293f68b8b3341b2a65fa9b7730eccab7a7
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Thu Oct 4 15:23:23 2012 +0200

    [FIX CI] features/examples/probleme.feature

commit 217a1d9f9f0032ad32b5c68ff350a955b061dc6a
Merge: b56072d 715d502
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Thu Oct 4 14:53:20 2012 +0200

    Merge branch 'next' into FS_order_lines_splitting

commit b56072d075cdeeb8fe8d6779bfeeb7aaa5b36114
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Thu Oct 4 14:52:55 2012 +0200

    [FIX CI]

commit 99e52175468b7a0e72dea7cae83f0328f66b1d43
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Thu Oct 4 14:36:57 2012 +0200

    [FIX CI]

commit 7ecd009f74e7a2ef49c91a6e2e3996afa9e407dd
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Thu Oct 4 13:38:01 2012 +0200

    unify availability calculation for multiple selected lines with the client side availability operations - remove multiple merged lines + minor translations

commit 1797b181fd275e3551e7949360aacff0bb2458aa
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Wed Oct 3 18:31:29 2012 +0200

    going on with merging order lines + improve merged lines availability

commit d07a0c4b929ca6bc7db1cd3ab0c5c2cb0aee565f
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Tue Oct 2 17:09:55 2012 +0200

    going on with merging order lines + minor fixes

commit 433cf214703c77efce944fc0300260d2541161a3
Merge: bfce0df d13e42a
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Mon Oct 1 15:25:20 2012 +0200

    Merge branch 'next' into FS_order_lines_splitting

    Conflicts:
    	Gemfile.lock
    	app/assets/javascripts/acknowledge/acknowledge.js.coffee
    	app/assets/javascripts/app/models/line.js.coffee
    	app/assets/javascripts/tmpl/dialog/acknowledge/approve.tmpl.haml
    	app/assets/javascripts/tmpl/dialog/acknowledge/edit_purpose.tmpl.haml
    	app/assets/javascripts/tmpl/dialog/acknowledge/reject.tmpl.haml
    	app/assets/javascripts/tmpl/line/hand_over.tmpl.haml
    	app/assets/javascripts/tmpl/line/order/submitted.tmpl.haml
    	app/assets/javascripts/tmpl/line/order_line.tmpl.haml
    	app/assets/javascripts/tmpl/subtitle/acknowledge.tmpl.haml
    	db/structure.sql
    	spec/javascripts/availability_specs/multiple_merged_lines_availability_different_quantities.js.coffee

commit bfce0df4dec47e80209aee905794a70d65a55699
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Mon Oct 1 14:32:04 2012 +0200

    go on with implement merged lines actions

commit de1dcc773fdc8f1bed5526bd6ac104945f2dde43
Author: Sebastian Pape <email@sebastianpape.com>
Date:   Wed Sep 26 10:51:07 2012 +0200

    merge/move all Line(s) related functions

commit ce0102bdad6b2873a59bbf1c4e50f1e88232de9b
Merge: 27e33a9 8decf76
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Sep 7 10:53:49 2012 +0200

    Merge branch 'next' into FS_order_lines_splitting

commit 27e33a950bd0d794b1337241198e1a67d513550a
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 23:42:59 2012 +0200

    refactoring update_lines from controller to model

commit 1abc6bc28ce425db3eeae7d1e29eed82fa02aa54
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 23:02:42 2012 +0200

    adapting cucumber test to new logic

commit 97a965a2c493f67eb799dd84896c0b1f2928ef2a
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 22:25:22 2012 +0200

    after find, automatically split order_line with quantity greater than 1

commit 02d7708ebdbf1d31329fc625a7c0f8e012ace3da
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Aug 14 17:04:54 2012 +0200

    remove acts_as_audited gem and obtrusive definitions in models

commit 41895ad3ae99d3c86a88bd47ee51a5cb949b0c28
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 11:22:05 2012 +0200

    fixing spec

commit 035b91744de44cdb965bb1d31f6f76e3315acea5
Merge: fdbcf51 124ee6c
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 10:55:14 2012 +0200

    Merge branch 'next' into FS_order_lines_splitting

commit fdbcf51e321cf3bbac439b42f0ffb752ed3c03bb
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Sep 6 10:52:10 2012 +0200

    [#34431513] depending on the quantity, splitting order_lines on add and update through the controller. each order_line should have quantity 1.
    (TODO split existing order_lines)
Merge branch 'next' into sp_edit_item_optimization