Index: vhUnitTest/APPS/PM/TestEANCodeService.cls.xml =================================================================== diff -u -r38760 -r38765 --- vhUnitTest/APPS/PM/TestEANCodeService.cls.xml (.../TestEANCodeService.cls.xml) (revision 38760) +++ vhUnitTest/APPS/PM/TestEANCodeService.cls.xml (.../TestEANCodeService.cls.xml) (revision 38765) @@ -19,65 +19,47 @@ - - - - - - + + + + +ProductID:%String,VerwachteNoodAanEANCode:%Boolean Index: vhUnitTest/APPS/PM/impl/EANCodeMock/ProductAPI.cls.xml =================================================================== diff -u -r38760 -r38765 --- vhUnitTest/APPS/PM/impl/EANCodeMock/ProductAPI.cls.xml (.../ProductAPI.cls.xml) (revision 38760) +++ vhUnitTest/APPS/PM/impl/EANCodeMock/ProductAPI.cls.xml (.../ProductAPI.cls.xml) (revision 38765) @@ -20,6 +20,13 @@ } ]]> + + +ProductID:DOM.common.ProductID +%Boolean + + Index: APPS/PM/EANCodeService.cls.xml =================================================================== diff -u -r38760 -r38765 --- APPS/PM/EANCodeService.cls.xml (.../EANCodeService.cls.xml) (revision 38760) +++ APPS/PM/EANCodeService.cls.xml (.../EANCodeService.cls.xml) (revision 38765) @@ -70,37 +70,24 @@ { #dim Product As DOM.PM.Product = ##class(DOM.DomeinContext).Instance().GeefProductAPI().GeefProduct(ProductID) #dim EANCode As %String = Product.GeefEANCode() - #dim IsGenerischAfgeleidProduct As %Boolean = (Product.GeefGenerischProductID()'="") - #dim ClassificatieKnoop As DOM.PM.ClassificatieKnoop = AdministratiefProduct.GeefClassificatieKnoop() - #dim MagEanCodeVoorProductEnClassificatie As %Boolean - Set MagEanCodeVoorProductEnClassificatie - = ( (ClassificatieKnoop.GeefAutomatischEANCodeToekennen()) && - ($$$Not(IsGenerischAfgeleidProduct) || ..IsClassificatieWaarinOokGenerischAfgeleideProductenEenEanCodeKrijgen(ClassificatieKnoop)) ) - If (EANCode="")&&MagEanCodeVoorProductEnClassificatie { - Set IsNieuweEANCodeNodig=1 + If (EANCode="") { + #dim IsGenerischAfgeleidProduct As %Boolean = (Product.GeefGenerischProductID()'="") + Set IsNieuweEANCodeNodig + = ( (AdministratiefProduct.GeefClassificatieKnoop().GeefAutomatischEANCodeToekennen()) && + ($$$Not(IsGenerischAfgeleidProduct) || ..MagGenerischAfgeleidProductEanCodeKrijgen(ProductID)) ) } } Quit IsNieuweEANCodeNodig ]]> - -ClassificatieKnoop:DOM.PM.ClassificatieKnoop + +ProductID:%String %Boolean - - -ClassificatieKnoop:DOM.PM.ClassificatieKnoop -%Boolean - - - ClassificatieID:%String + + +ProductID:%String +%Boolean + + Index: DOM/PM/impl/ProductTypeAPIimpl.cls.xml =================================================================== diff -u -r38568 -r38765 --- DOM/PM/impl/ProductTypeAPIimpl.cls.xml (.../ProductTypeAPIimpl.cls.xml) (revision 38568) +++ DOM/PM/impl/ProductTypeAPIimpl.cls.xml (.../ProductTypeAPIimpl.cls.xml) (revision 38765) @@ -176,6 +176,21 @@ ]]> + +ProductID:%String +%Boolean + + + ProductID:%String %Boolean Index: DOM/PM/ProductTypeAPI.cls.xml =================================================================== diff -u -r35039 -r38765 --- DOM/PM/ProductTypeAPI.cls.xml (.../ProductTypeAPI.cls.xml) (revision 35039) +++ DOM/PM/ProductTypeAPI.cls.xml (.../ProductTypeAPI.cls.xml) (revision 38765) @@ -136,6 +136,12 @@ DOM.PM.TAORProduct.TAORLade + +1 +ProductID:%String +%Boolean + + 1 ProductID:%String