Skip to content

Commit 4b4403c

Browse files
committed
Added column pos sell for check when is selled by the pos system
1 parent 19e1376 commit 4b4403c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/controllers/spree/admin/pos_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def print
5151
payment.capture!
5252
end
5353
@order.state = "complete"
54+
@order.pos_sell = true
5455
@order.completed_at = Time.now
5556
@order.create_tax_charge!
5657
@order.finalize!
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddPosSellColumnToSpreeOrders < ActiveRecord::Migration
2+
def change
3+
add_column :spree_orders, :pos_sell, :boolean, default: false
4+
end
5+
end

0 commit comments

Comments
 (0)