Matt-Yorkley
|
fb4e573cfa
|
Add a soft-deleted test in line_item_spec
|
2019-07-11 16:07:30 +01:00 |
|
luisramos0
|
86b0d71c7e
|
Result of rubocop auto-correct and rebuilding rubocop_manual_todo
|
2019-05-28 12:57:29 +01:00 |
|
luisramos0
|
04801e5c2e
|
Run transpec in spec/models
|
2019-05-09 22:25:29 +01:00 |
|
luisramos0
|
3085e15961
|
Fix order factory by making line_item.skip_stock_check work in spree 2
|
2018-12-20 14:26:34 +00:00 |
|
luisramos0
|
bf32a21155
|
Allow adapted on_hand attr to be mass assigned in VariantStock.
Without specifying it in `attr_accessible`, `#assign_attributes` won't
work. See details in
https://apidock.com/rails/v3.2.13/ActiveRecord/Persistence/update_attributes
and https://apidock.com/rails/ActiveRecord/Base/assign_attributes.
|
2018-11-19 10:05:17 +00:00 |
|
luisramos0
|
c373d5ab33
|
Replace usage of global allow_backorders with variant.on_demand in line item sufficient stock method
|
2018-10-18 19:44:38 +01:00 |
|
stveep
|
8a783bbb7d
|
PR changes: extract SQL in methods to scopes, add case insensitivity to test for sorting
|
2018-03-23 17:37:50 +11:00 |
|
stveep
|
40506685ef
|
Adding extra sort step for variant name; ignore case in sorting line items by name
|
2018-03-23 17:37:50 +11:00 |
|
Duende13
|
ba37db7ccc
|
Refactoring test to adopt most Rspec syntax (expect instead of should)
|
2018-03-23 17:37:50 +11:00 |
|
Duende13
|
330e7d71af
|
Sort line items by name and unit_value for confirmation email and summary screen
|
2018-03-23 17:37:50 +11:00 |
|
Rob Harrington
|
28491ee948
|
Skip stock check when requested quantity is zero
This prevents an error being raised when available stock is negative
|
2018-03-02 14:53:24 +11:00 |
|
Rob Harrington
|
fe4145d9d5
|
Use expect syntax
|
2018-03-02 14:53:24 +11:00 |
|
Rob Harrington
|
be11a1a2f9
|
Fix memoization issue with line item unit specs
|
2018-02-09 14:44:03 +11:00 |
|
Rob Harrington
|
8e0f2fcb35
|
Adding optional manual override of line item stock level check
|
2018-02-09 14:43:54 +11:00 |
|
Rob Harrington
|
5598a0d24f
|
line_item.unit_value delegates to variant when quantity is 0 or final_weight_volume is missing
|
2018-02-09 14:43:41 +11:00 |
|
Rob Harrington
|
1c7e9923f9
|
Checking for sufficient stock takes variant overrides into account
|
2018-02-09 14:43:41 +11:00 |
|
Rob Harrington
|
a8928a0ccc
|
Capping line item quantity at stock takes overrides into account
|
2018-02-09 14:43:40 +11:00 |
|
Rob Harrington
|
579f3bf90a
|
Changing quantity and deleting line_items of completed orders works with inventory where present
|
2017-05-05 14:20:57 +10:00 |
|
Rob Harrington
|
6a3f6e7bfa
|
Revert "Add line item included_tax_amount method to multiply by quantity"
This reverts commit 547fcf49e0.
|
2016-05-20 09:46:31 +10:00 |
|
Steve Pettitt
|
547fcf49e0
|
Add line item included_tax_amount method to multiply by quantity
|
2016-05-14 11:00:13 +01:00 |
|
Rohan Mitchell
|
8f8a1191cb
|
Remove stock cap on max_quantity
|
2016-04-27 12:27:24 +10:00 |
|
Rohan Mitchell
|
5151779f80
|
When update is for another line item, still update all stock levels and show warnings
|
2016-04-21 09:36:23 +10:00 |
|
Rob Harrington
|
fe0652e243
|
When updating a line_item quantity from 0, final_weight_volume is recalculated from the variants unit value
|
2015-12-16 19:18:59 +11:00 |
|
Rob Harrington
|
befc558224
|
Pulling product_and_variant_name down into VariantAndLineItemNaming, renaming to product_and_full_name
Also allowing this method to be used in reports (Xero), to reflect appropriate name for weight/volume adjusted line items
|
2015-12-16 11:55:24 +11:00 |
|
Rob H
|
86f1afae92
|
derp
|
2015-11-29 18:10:49 +11:00 |
|
Rob H
|
1cffd35968
|
Fixing up specs pertaining to full_name generation for line_items
|
2015-11-29 17:52:01 +11:00 |
|
Rob Harrington
|
4bdc1bc418
|
LineItem final_weight_volume is updated whenever quantity is changed, though can be set directly
|
2015-11-18 16:22:36 +11:00 |
|
Rob Harrington
|
18a7317185
|
Merge branch 'account-invoices' into line_item_naming
Conflicts:
app/models/spree/line_item_decorator.rb
|
2015-10-28 13:42:27 +11:00 |
|
Rob Harrington
|
ab7bfd10c5
|
Revert "Renaming options_text to unit_text so that we can use method from included VariantAndLineItemNaming module"
This reverts commit e86e08b72e939fee61eddd41d56081395666a877.
Conflicts:
lib/open_food_network/order_and_distributor_report.rb
spec/features/admin/variants_spec.rb
spec/lib/open_food_network/order_and_distributor_report_spec.rb
|
2015-10-28 13:08:50 +11:00 |
|
Rob Harrington
|
eba13a0dd7
|
Line items inherit units from variants upon creation
|
2015-10-28 13:07:31 +11:00 |
|
Rob Harrington
|
795830d94d
|
Renaming options_text to unit_text so that we can use method from included VariantAndLineItemNaming module
|
2015-10-28 13:07:31 +11:00 |
|
Rob Harrington
|
039fcb80eb
|
Extracting variant and option_value naming out into a lib class that is now shared between line items and variants, line_items have option_values
|
2015-10-28 13:06:10 +11:00 |
|
Rob Harrington
|
9b2653aa2d
|
Updating order invoice template to be more legally compliant
|
2015-10-21 15:52:14 +11:00 |
|
Rohan Mitchell
|
8f40702369
|
Line items report whether they have tax included
|
2015-09-21 15:57:04 +10:00 |
|
Maikel Linke
|
ffa960b02e
|
Merge remote-tracking branch 'origin/xero-report' into combined/xero-report_show-order-without-distributor
|
2015-06-05 13:48:24 +10:00 |
|
Rohan Mitchell
|
97e49c2bdb
|
Replace 'array.sort.should == expected.sort' pattern with match_array
|
2015-05-28 10:46:08 +10:00 |
|
Rohan Mitchell
|
ca1d88d8b1
|
Find line items with and without tax
|
2015-05-15 12:35:19 +10:00 |
|
Rohan Mitchell
|
c4b45bdbbf
|
Fix line items returning prices with fractional cents
|
2014-12-18 16:24:59 +11:00 |
|
Rohan Mitchell
|
f8fa014796
|
LineItem.supplied_by_any
|
2014-06-06 09:47:15 +10:00 |
|
Rohan Mitchell
|
8654f23a19
|
Move spree model decorator specs into their own dir to mirror model dir layout
|
2013-10-17 09:53:54 +11:00 |
|