Skip to content

Commit

Permalink
Added date to daily production report
Browse files Browse the repository at this point in the history
  • Loading branch information
satanas committed Apr 29, 2012
1 parent 9b1d9af commit 101b59f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
1 change: 1 addition & 0 deletions app/models/easy_model.rb
Expand Up @@ -44,6 +44,7 @@ def self.daily_production(start_date, end_date)
stotal = o.recipe.get_total() * rbatches
data['results'] << {
'order' => o.code,
'date' => o.created_at.strftime("%d/%m/%Y"),
'recipe_code' => o.recipe.code,
'recipe_name' => o.recipe.name,
'client_code' => o.client.code,
Expand Down
45 changes: 23 additions & 22 deletions config/reports/daily_production.yml
Expand Up @@ -82,59 +82,60 @@ report:
align: left
width: 20
2:
date:
label: Fecha
align: left
width: 18
3:
recipe_code:
label: Receta
align: left
width: 20
3:
4:
recipe_name:
label: Desc. Receta
align: left
width: 50
4:
width: 40
5:
client_code:
label: Cliente
align: left
width: 25
5:
6:
client_name:
label: Desc. Cliente
align: left
width: 40
6:
width: 35
7:
real_batches:
label: Batch.R.
label: Baches
align: right
width: 15
7:
width: 13
8:
total_standard:
label: Total Estand.
label: Total Est.(Kg)
align: right
width: 30
unit: Kg
width: 28
totalize: true
precision: 2
8:
9:
total_real:
label: Total Real
label: Total Real (Kg)
align: right
width: 30
unit: Kg
width: 28
totalize: true
precision: 2
9:
10:
var_kg:
label: Var Kg
label: Var (Kg)
align: right
width: 20
unit: Kg
precision: 2
10:
11:
var_perc:
label: Var %
label: Var (%)
align: right
width: 15
unit: %
precision: 2
3:
breakline:
Expand Down

0 comments on commit 101b59f

Please sign in to comment.