app/models/extface/driver/daisy_fx1200.rb in extface-0.4.7 vs app/models/extface/driver/daisy_fx1200.rb in extface-0.4.8

- old
+ new

@@ -88,11 +88,16 @@ s.fsend Closure::DAY_FIN_REPORT, "2" s.notify "X Report End" end end - # def period_report_session(from, to, detailed = true) - # end + def period_report_session(from, to, detailed = true) + device.session("Period Report #{ '(detailed)' if detailed }") do |s| + s.notify "Period Report Start #{ '(detailed)' if detailed }" + s.fsend detailed ? Reports::REPORT_FP_BY_DATE : Reports::COMPACT_REPORT_FP_BY_DATE, "#{from.strftime('%d%m%y')},#{to.strftime('%d%m%y')}" + s.notify "Period Report End" + end + end #print def open_non_fiscal_doc fsend Sales::START_NON_FISCAL_DOC @print_session = true \ No newline at end of file