sync lookup type

This commit is contained in:
Zoey
2019-06-13 13:03:41 +06:30
parent 2a04fb4065
commit 0980923cc7
5 changed files with 22 additions and 16 deletions

View File

@@ -74,7 +74,8 @@ authorize_resource :class => false
@orders, @order_items, @sales, @sale_items, @sale_taxes, @sale_payments, @sale_orders, @sale_audits, @shift_sales = Booking.get_sync_data(params[:sale_id])
# Here comes to call the sync api
url = "http://192.168.1.176:3000/en/api/sync_data"
# url = "http://192.168.1.176:3000/en/api/sync_data"
url = Lookup.sync_url
begin
@result = HTTParty.post(url.to_str,