fix: don't allocate advances if POS

This commit is contained in:
Nabin Hait
2019-04-23 15:49:38 +05:30
parent bbc7f474c3
commit 05fb3f2d75
2 changed files with 2 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ class AccountsController(TransactionBase):
self.validate_paid_amount()
if self.doctype in ['Purchase Invoice', 'Sales Invoice']:
if cint(self.allocate_advances_automatically):
if cint(self.allocate_advances_automatically) and not cint(self.is_pos):
self.set_advances()
if self.is_return: