fix tolerance display in group_order form
This commit is contained in:
parent
c31e864c73
commit
befe89d4ef
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ class GroupOrder < ActiveRecord::Base
|
||||||
:quantity => (goa ? goa.quantity : 0),
|
:quantity => (goa ? goa.quantity : 0),
|
||||||
:others_quantity => order_article.quantity - (goa ? goa.quantity : 0),
|
:others_quantity => order_article.quantity - (goa ? goa.quantity : 0),
|
||||||
:used_quantity => (goa ? goa.result(:quantity) : 0),
|
:used_quantity => (goa ? goa.result(:quantity) : 0),
|
||||||
:tolerance => (goa ? goa.result(:tolerance) : 0),
|
:tolerance => (goa ? goa.tolerance : 0),
|
||||||
:others_tolerance => order_article.tolerance - (goa ? goa.result(:tolerance) : 0),
|
:others_tolerance => order_article.tolerance - (goa ? goa.tolerance : 0),
|
||||||
:used_tolerance => (goa ? goa.result(:tolerance) : 0),
|
:used_tolerance => (goa ? goa.result(:tolerance) : 0),
|
||||||
:total_price => (goa ? goa.total_price : 0),
|
:total_price => (goa ? goa.total_price : 0),
|
||||||
:missing_units => order_article.missing_units,
|
:missing_units => order_article.missing_units,
|
||||||
|
|
Loading…
Reference in a new issue