fix: Incorrect indentation
This commit is contained in:
parent
f07f010962
commit
7f06c8ca57
@ -150,12 +150,6 @@ class AccountsController(TransactionBase):
|
|||||||
if cint(self.allocate_advances_automatically) and not cint(self.get(pos_check_field)):
|
if cint(self.allocate_advances_automatically) and not cint(self.get(pos_check_field)):
|
||||||
self.set_advances()
|
self.set_advances()
|
||||||
|
|
||||||
if self.doctype == 'Purchase Invoice':
|
|
||||||
self.calculate_paid_amount()
|
|
||||||
# apply tax withholding only if checked and applicable
|
|
||||||
self.set_tax_withholding()
|
|
||||||
|
|
||||||
|
|
||||||
self.set_advance_gain_or_loss()
|
self.set_advance_gain_or_loss()
|
||||||
|
|
||||||
if self.is_return:
|
if self.is_return:
|
||||||
@ -165,6 +159,11 @@ class AccountsController(TransactionBase):
|
|||||||
|
|
||||||
self.set_inter_company_account()
|
self.set_inter_company_account()
|
||||||
|
|
||||||
|
if self.doctype == 'Purchase Invoice':
|
||||||
|
self.calculate_paid_amount()
|
||||||
|
# apply tax withholding only if checked and applicable
|
||||||
|
self.set_tax_withholding()
|
||||||
|
|
||||||
validate_regional(self)
|
validate_regional(self)
|
||||||
|
|
||||||
if self.doctype != 'Material Request':
|
if self.doctype != 'Material Request':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user