diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-31 13:22:53 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-31 13:22:53 +0100 |
| commit | 3e4d5cb0733efb23627924870d8bc41e691aa9cc (patch) | |
| tree | 6b382ee4bf2b1ec631222f8fd3b17e7e8f23cd74 /includes | |
| parent | 8c97edc1011e46e52ccecd9e7cc5f1bd9fcadc08 (diff) | |
| download | stock-3e4d5cb0733efb23627924870d8bc41e691aa9cc.tar.gz stock-3e4d5cb0733efb23627924870d8bc41e691aa9cc.tar.bz2 stock-3e4d5cb0733efb23627924870d8bc41e691aa9cc.zip | |
Add supplier xref page; fix STOCKASSEMBLY_CONTENT_TYPE_GUID in StockBase
add_supplier.php + add_supplier.tpl: form to add a #SUP xref record
with supplier contact (filtered by $04 type), part number, price and
note in one step. view_xref_sup_group.tpl: smartlink updated to
"Add supplier" pointing to the new page. StockBase: define
STOCKASSEMBLY_CONTENT_TYPE_GUID with guard so it is available when
StockAssembly is not loaded (e.g. component view path).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/classes/StockBase.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/classes/StockBase.php b/includes/classes/StockBase.php index 839216f..a9c7fe5 100755 --- a/includes/classes/StockBase.php +++ b/includes/classes/StockBase.php @@ -10,6 +10,8 @@ namespace Bitweaver\Stock; use Bitweaver\Liberty\LibertyContent; +defined( 'STOCKASSEMBLY_CONTENT_TYPE_GUID' ) || define( 'STOCKASSEMBLY_CONTENT_TYPE_GUID', 'stockassembly' ); + /** * @package stock */ |
