Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

+20 -14
View File
@@ -522,23 +522,29 @@ class Application extends SystemApplication
{
$return = [];
if( $extensionType == 'Item' )
switch( $extensionType )
{
$return[ '{itemType}' ] = new Select( 'extension_invoice_item_type', null, true, [
'options' => [
'Purchase' => 'Purchase',
'Charge' => 'Charge'
]
]);
$return[ '{type}' ] = new Text( 'extension_item_key', null, true, [], function( $val ) use ( $appKey ){
foreach( SystemApplication::load( $appKey )->extensions( 'nexus', 'Item', false ) as $ext )
{
if( $ext::$type == $val )
case 'Item':
$return[ '{itemType}' ] = new Select( 'extension_invoice_item_type', null, true, [
'options' => [
'Purchase' => 'Purchase',
'Charge' => 'Charge'
]
]);
$return[ '{type}' ] = new Text( 'extension_item_key', null, true, [], function( $val ) use ( $appKey ){
foreach( SystemApplication::load( $appKey )->extensions( 'nexus', 'Item', false ) as $ext )
{
throw new DomainException( 'err_duplicate_item_key' );
if( $ext::$type == $val )
{
throw new DomainException( 'err_duplicate_item_key' );
}
}
}
} );
} );
break;
case 'PackageType':
$return[ '{table}' ] = new Text( 'extension_packagetype_table', null, true );
break;
}
return $return;