import influxframework


def execute():
	influxframework.reload_doc("buying", "doctype", "supplier_quotation")
	influxframework.db.sql(
		"""UPDATE `tabSupplier Quotation`
		SET valid_till = DATE_ADD(transaction_date , INTERVAL 1 MONTH)
		WHERE docstatus < 2"""
	)
