[fix] [minor] fixes in updating warranty period of serial no
This commit is contained in:
parent
4cfb779d93
commit
e98ab7a2f4
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.utils import cint, flt, comma_or, _round
|
from webnotes.utils import cint, flt, comma_or, _round, add_days
|
||||||
from setup.utils import get_company_currency
|
from setup.utils import get_company_currency
|
||||||
from selling.utils import get_item_details
|
from selling.utils import get_item_details
|
||||||
from webnotes import msgprint, _
|
from webnotes import msgprint, _
|
||||||
@ -291,7 +291,7 @@ class SellingController(StockController):
|
|||||||
sr.doc.customer = self.doc.customer
|
sr.doc.customer = self.doc.customer
|
||||||
sr.doc.customer_name = self.doc.customer_name
|
sr.doc.customer_name = self.doc.customer_name
|
||||||
if sr.doc.warranty_period:
|
if sr.doc.warranty_period:
|
||||||
sr.doc.warranty_expiry_date = add_days(cstr(self.doc.delivery_date),
|
sr.doc.warranty_expiry_date = add_days(cstr(self.doc.posting_date),
|
||||||
cint(sr.doc.warranty_period))
|
cint(sr.doc.warranty_period))
|
||||||
sr.doc.status = 'Delivered'
|
sr.doc.status = 'Delivered'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user