mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
(cherry picked from commit 5fec44446e)
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
This commit is contained in:
@@ -478,6 +478,9 @@ class SalesInvoice(SellingController):
|
|||||||
if cint(self.is_pos) != 1:
|
if cint(self.is_pos) != 1:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not self.account_for_change_amount:
|
||||||
|
self.account_for_change_amount = frappe.get_cached_value('Company', self.company, 'default_cash_account')
|
||||||
|
|
||||||
from erpnext.stock.get_item_details import get_pos_profile_item_details, get_pos_profile
|
from erpnext.stock.get_item_details import get_pos_profile_item_details, get_pos_profile
|
||||||
if not self.pos_profile:
|
if not self.pos_profile:
|
||||||
pos_profile = get_pos_profile(self.company) or {}
|
pos_profile = get_pos_profile(self.company) or {}
|
||||||
@@ -492,9 +495,6 @@ class SalesInvoice(SellingController):
|
|||||||
if not self.get('payments') and not for_validate:
|
if not self.get('payments') and not for_validate:
|
||||||
update_multi_mode_option(self, pos)
|
update_multi_mode_option(self, pos)
|
||||||
|
|
||||||
if not self.account_for_change_amount:
|
|
||||||
self.account_for_change_amount = frappe.get_cached_value('Company', self.company, 'default_cash_account')
|
|
||||||
|
|
||||||
if pos:
|
if pos:
|
||||||
if not for_validate:
|
if not for_validate:
|
||||||
self.tax_category = pos.get("tax_category")
|
self.tax_category = pos.get("tax_category")
|
||||||
|
|||||||
Reference in New Issue
Block a user