Fixes in patches
This commit is contained in:
parent
63b94c42e4
commit
53ef4009ba
@ -49,7 +49,7 @@ def update_status():
|
||||
sql("""update `tabDelivery Note` set billing_status = if(ifnull(per_billed,0) < 0.001, 'Not Billed',
|
||||
if(per_billed >= 99.99, 'Fully Billed', 'Partly Billed'))""")
|
||||
|
||||
def run_patch():
|
||||
def execute():
|
||||
update_delivered_billed_qty()
|
||||
update_percent()
|
||||
update_status()
|
||||
|
@ -10,4 +10,4 @@ def execute():
|
||||
|
||||
|
||||
for d in ['Receivable Voucher', 'Delivery Note', 'Sales Order', 'Quotation']:
|
||||
sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)
|
||||
webnotes.conn.sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)
|
||||
|
@ -2,6 +2,7 @@ def execute():
|
||||
import webnotes
|
||||
sql = webnotes.conn.sql
|
||||
from webnotes.model.code import get_obj
|
||||
from webnotes.utils import flt
|
||||
|
||||
# update incoming rate in serial nos
|
||||
sr = sql("""select name, item_code, purchase_document_no from `tabSerial No`
|
||||
|
Loading…
x
Reference in New Issue
Block a user