app/models/extface/driver/datecs/fp550.rb in extface-0.4.7 vs app/models/extface/driver/datecs/fp550.rb in extface-0.4.8
- old
+ new
@@ -72,9 +72,17 @@
s.fsend Closure::DAY_FIN_REPORT, "2"
s.notify "X Report End"
end
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
end
\ No newline at end of file