Sha256: 95c853747b3c55e8c9c794ee27ef79279a0905a6f96470892e35604d57e4fd76

Contents?: true

Size: 688 Bytes

Versions: 6

Compression:

Stored size: 688 Bytes

Contents

# -*- encoding: utf-8 -*-
$:.unshift(File.join(File.dirname(__FILE__), "../../lib"))

require 'rescpos'

class BillListReport < Rescpos::Report
  attr_reader :bill, :bill_items

  def initialize
    @bill_items = [{
      :name => '广靓油条',
      :quantity => 2,
      :dish_category => '面组'
    }, {
      :name => '靓油条',
      :quantity => 3,
      :dish_category => '面组'
    }, {
      :name => '广式靓油条',
      :quantity => 1,
      :dish_category => '面组'
    }]

    @bill = {
      :id => "20110819000002",
      :waiter => '000',
      :created_at => '2011-08-18 13:11:03',
      :table => '01B[大堂]',
      :num_of_people => 2, 
    }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rescpos-0.0.9 examples/reports/bill_list_report.rb
rescpos-0.0.8 examples/reports/bill_list_report.rb
rescpos-0.0.7 examples/reports/bill_list_report.rb
rescpos-0.0.6 examples/reports/bill_list_report.rb
rescpos-0.0.5 examples/reports/bill_list_report.rb
rescpos-0.0.3 examples/reports/bill_list_report.rb