Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
198c3f77bb | ||
|
c9d093d343 | ||
|
5d3820a8f2 | ||
![]() |
7721ddf11e | ||
![]() |
ebb9211f2d |
|
@ -1,3 +1,9 @@
|
|||
## v0.1.1 (2025-02-20)
|
||||
|
||||
### Fix
|
||||
|
||||
- set vendor name, sku when refreshing neworder batch row
|
||||
|
||||
## v0.1.0 (2025-01-13)
|
||||
|
||||
### Feat
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
# Sideshow-COREPOS
|
||||
|
||||
This package adds CORE-POS integration for Sideshow.
|
||||
This package adds [CORE-POS](https://www.core-pos.com/) integration
|
||||
for [Sideshow](https://pypi.org/project/Sideshow/).
|
||||
|
||||
Full docs are at https://rattailproject.org/docs/sideshow-corepos/
|
||||
|
|
|
@ -11,7 +11,6 @@ from importlib.metadata import version as get_version
|
|||
project = 'Sideshow-COREPOS'
|
||||
copyright = '2025, Lance Edgar'
|
||||
author = 'Lance Edgar'
|
||||
release = '0.1'
|
||||
release = get_version('Sideshow-COREPOS')
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
@ -28,8 +27,8 @@ templates_path = ['_templates']
|
|||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
|
||||
intersphinx_mapping = {
|
||||
'sideshow': ('https://rattailproject.org/docs/sideshow/', None),
|
||||
'wuttjamaican': ('https://rattailproject.org/docs/wuttjamaican/', None),
|
||||
'sideshow': ('https://docs.wuttaproject.org/sideshow/', None),
|
||||
'wuttjamaican': ('https://docs.wuttaproject.org/wuttjamaican/', None),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "Sideshow-COREPOS"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = "Case/Special Order Tracker for CORE-POS"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
|
@ -27,12 +27,14 @@ classifiers = [
|
|||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Topic :: Office/Business",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
license = {text = "GNU General Public License v3+"}
|
||||
requires-python = ">= 3.8"
|
||||
dependencies = [
|
||||
"Sideshow>=0.3.0",
|
||||
"Wutta-COREPOS[web]>=0.2.0",
|
||||
"Sideshow>=0.6.0",
|
||||
"Wutta-COREPOS[web]>=0.3.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
|
|
|
@ -198,6 +198,14 @@ class NewOrderBatchHandler(base.NewOrderBatchHandler):
|
|||
row.department_id = product.department_number
|
||||
row.department_name = product.department.name if product.department else None
|
||||
row.special_order = False
|
||||
|
||||
row.vendor_name = None
|
||||
row.vendor_item_code = None
|
||||
item = product.default_vendor_item
|
||||
if item:
|
||||
row.vendor_name = item.vendor.name if item.vendor else None
|
||||
row.vendor_item_code = item.sku
|
||||
|
||||
row.case_size = self.get_case_size_for_external_product(product)
|
||||
row.unit_cost = product.cost
|
||||
row.unit_price_reg = self.get_unit_price_reg_for_external_product(product)
|
||||
|
|
|
@ -259,3 +259,5 @@ class TestNewOrderBatchHandler(DataTestCase):
|
|||
self.assertEqual(row.product_size, "32oz")
|
||||
self.assertEqual(row.case_size, decimal.Decimal('12.3400'))
|
||||
self.assertEqual(row.unit_price_reg, decimal.Decimal('4.19'))
|
||||
self.assertEqual(row.vendor_name, 'Acme Distributors')
|
||||
self.assertEqual(row.vendor_item_code, '1234')
|
||||
|
|
Loading…
Reference in a new issue