app/models/extface/driver/daisy_fx1200.rb in extface-0.2.3 vs app/models/extface/driver/daisy_fx1200.rb in extface-0.2.4

- old
+ new

@@ -72,9 +72,24 @@ s.fsend Sales::END_NON_FISCAL_DOC s.notify "Printing finished" end end + def open_non_fiscal_doc + fsend Sales::START_NON_FISCAL_DOC + @print_session = true + end + + def print(text) + raise "Not in print session" unless @print_session + fsend Sales::PRINT_NON_FISCAL_TEXT, text + end + + def close_non_fiscal_doc + fsend Sales::END_NON_FISCAL_DOC + @print_session = false + end + def fiscal_test sale_and_pay_items_session([ { price: 0.01, text1: "Extface Test" } ]) end \ No newline at end of file