[Staging] Patch fix - Shopify Settings (#15338)

* keep enable_shopify in Shopify Settings disabled by default

* patch fix for shopify refactor

* minor fallback fix
This commit is contained in:
Zarrar
2018-09-07 13:19:33 +05:30
committed by Nabin Hait
parent 203baa9a3a
commit 7737620ff4
4 changed files with 20 additions and 8 deletions

View File

@@ -289,7 +289,7 @@ class SalesInvoice(SellingController):
super(SalesInvoice, self).set_missing_values(for_validate)
print_format = pos.get("print_format_for_online")
print_format = pos.get("print_format_for_online") if pos else None
if not print_format and not cint(frappe.db.get_value('Print Format', 'POS Invoice', 'disabled')):
print_format = 'POS Invoice'