Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQL (0.1ms) SELECT DISTINCT `cashbox_operations`.`user_id` FROM `cashbox_operations`
- ERROR: compiling _app_views_gross_revenues_show_html_erb___835752844__546151128 RAISED /home/inpos/public_html/pos/releases/ff164ca124d884b613b440ff1713f0204a3031a0/app/views/gross_revenues/show.html.erb:29: syntax error, unexpected keyword_end, expecting ')'
- '); end
- ^
- /home/inpos/public_html/pos/releases/ff164ca124d884b613b440ff1713f0204a3031a0/app/views/gross_revenues/show.html.erb:35: syntax error, unexpected keyword_ensure, expecting ')'
- /home/inpos/public_html/pos/releases/ff164ca124d884b613b440ff1713f0204a3031a0/app/views/gross_revenues/show.html.erb:37: syntax error, unexpected keyword_end, expecting ')'
- Function body: def _app_views_gross_revenues_show_html_erb___835752844__546151128(local_assigns, output_buffer)
- _old_virtual_path, @virtual_path = @virtual_path, "gross_revenues/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( link_to '<span>Вернуться к списку</span>'.html_safe, gross_revenues_path, class: 'back' );@output_buffer.safe_concat('
- ');@output_buffer.safe_concat('
- <h2>Позиции чеков за ');@output_buffer.append= ( params[:id] );@output_buffer.safe_concat(' по ');@output_buffer.append= ( @user.nil? ? 'всей аптеке' : @user.name );@output_buffer.safe_concat('</h2>
- <table>
- <thead>
- <tr>
- <th>Название позиции</th>
- <th>Количество</th>
- <th>Сумма</th>
- <th>ВД</th>
- <th>Фонд ЗП</th>
- </tr>
- </thead>
- <tbody>
- '); @receipt_positions.each do |receipt_position|
- @output_buffer.safe_concat(' <tr>
- <td>
- ');@output_buffer.append= ( receipt_position.name );@output_buffer.safe_concat('
- '); if @user.nil?
- @output_buffer.safe_concat(' <br><i>');@output_buffer.append= ( receipt_position.receipt.cashbox_operation.user_name );@output_buffer.safe_concat('</i>
- '); end
- @output_buffer.safe_concat(' </td>
- <td>');@output_buffer.append= ( receipt_position.amount );@output_buffer.safe_concat('</td>
- <td>');@output_buffer.append= ( number_to_currency(receipt_position.sum_with_discount) );@output_buffer.safe_concat('</td>
- <td>');@output_buffer.append= ( number_to_currency(receipt_position.gross_revenue) );@output_buffer.safe_concat('</td>
- <td>');@output_buffer.append= ( number_to_currency(payroll(receipt_position.gross_revenue) );@output_buffer.safe_concat('</td>
- </tr>
- '); end
- @output_buffer.safe_concat(' </tbody>
- </table>
- ');@output_buffer.append= ( paginate @receipt_positions );@output_buffer.safe_concat('
- ');@output_buffer.to_s
- ensure
- @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
- end
- Backtrace: /home/inpos/public_html/pos/releases/ff164ca124d884b613b440ff1713f0204a3031a0/vendor/bundle/ruby/2.1.0/gems/actionpack-3.2.17/lib/action_view/template.rb:297:in `module_eval'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement