Commit b2aa328a by yasir

update

1 parent 83c4f6cf
...@@ -50,7 +50,7 @@ class Vendor(VendorClass): # VendorClass ...@@ -50,7 +50,7 @@ class Vendor(VendorClass): # VendorClass
self.cust_kd = customer.kode self.cust_kd = customer.kode
self.cust_inv_no = self.invoice_det.cust_inv_no self.cust_inv_no = self.invoice_det.cust_inv_no
def _get_minute_duration(time_stamp): def _get_minute_duration(self, time_stamp):
datetime_object = datetime.strptime(time_stamp, '%Y%m%d%H%M%S') datetime_object = datetime.strptime(time_stamp, '%Y%m%d%H%M%S')
current_datetime = datetime.now().strftime('%Y%m%d%H%M%S') current_datetime = datetime.now().strftime('%Y%m%d%H%M%S')
...@@ -63,7 +63,7 @@ class Vendor(VendorClass): # VendorClass ...@@ -63,7 +63,7 @@ class Vendor(VendorClass): # VendorClass
return minute_day + minute_hour return minute_day + minute_hour
def _send_data_json(data, apiUrl): def _send_data_json(self, data, apiUrl):
requestData = data requestData = data
host = urlparse(apiUrl) host = urlparse(apiUrl)
hostUrl = host.netloc hostUrl = host.netloc
...@@ -74,7 +74,7 @@ class Vendor(VendorClass): # VendorClass ...@@ -74,7 +74,7 @@ class Vendor(VendorClass): # VendorClass
return resp.text return resp.text
def _transform_omnipay_response(omnipay_response): def _transform_omnipay_response(self, omnipay_response):
plain_omni = omnipay_response plain_omni = omnipay_response
try: try:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!