Make CORE API client via app handler, not deprecated function
This commit is contained in:
parent
7b9b6e57e2
commit
ebdb658a2c
5 changed files with 8 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2021 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -27,7 +27,6 @@ Handler for Vendor Catalog batches
|
|||
import decimal
|
||||
|
||||
from rattail.batch import vendorcatalog as base
|
||||
from rattail_corepos.corepos.api import make_corepos_api
|
||||
|
||||
|
||||
class VendorCatalogHandler(base.VendorCatalogHandler):
|
||||
|
@ -73,7 +72,7 @@ class VendorCatalogHandler(base.VendorCatalogHandler):
|
|||
if not vendor_id:
|
||||
raise ValueError("Batch vendor does not have valid CORE-POS ID")
|
||||
|
||||
self.api = make_corepos_api(self.config)
|
||||
self.api = self.get_corepos_handler.make_webapi()
|
||||
self.update_corepos(batch, rows, vendor_id, progress=progress,
|
||||
# update_product_costs=kwargs.get('update_product_costs', False),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue