From 82be020ae9ccdf38e87696bdc2148a3aad00ed29 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 4 Oct 2016 12:46:37 +0530 Subject: [PATCH] sync offline sales invoices from the POS --- erpnext/accounts/page/pos/pos.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 1c4d4103c7..fa88481652 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -106,11 +106,15 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ me.get_data_from_server(function(){ me.load_data(false); me.make_customer(); - me.make_item_list(false); + me.make_item_list(true); me.set_missing_values(); }) }); + this.page.add_menu_item(__("Sync Offline Invoices"), function(){ + me.sync_sales_invoice() + }); + this.page.add_menu_item(__("POS Profile"), function() { frappe.set_route('List', 'POS Profile'); });