Changeset 894 for trunk/Modules/Document/Document.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Document/Document.php
r893 r894 82 82 function GetModels(): array 83 83 { 84 return array('FinanceYear', 'DocumentLineCode', 'DocumentLine', 'DocumentLineSequence'); 84 return array(FinanceYear::GetClassName(), DocumentLineCode::GetClassName(), DocumentLine::GetClassName(), 85 DocumentLineSequence::GetClassName()); 85 86 } 86 87 } … … 90 91 static function GetDesc(): ModelDesc 91 92 { 92 $Desc = new ModelDesc( 'DocumentLine');93 $Desc = new ModelDesc(self::GetClassName()); 93 94 $Desc->AddString('Name'); 94 95 $Desc->AddString('ShortCut'); … … 102 103 static function GetDesc(): ModelDesc 103 104 { 104 $Desc = new ModelDesc( 'DocumentLineCode');105 $Desc->AddReference('DocumentLine', 'DocumentLine');105 $Desc = new ModelDesc(self::GetClassName()); 106 $Desc->AddReference('DocumentLine', DocumentLine::GetClassName()); 106 107 $Desc->AddString('Name'); 107 108 return $Desc; … … 113 114 static function GetDesc(): ModelDesc 114 115 { 115 $Desc = new ModelDesc( 'DocumentLineSequence');116 $Desc->AddReference('DocumentLine', 'DocumentLine');117 $Desc->AddReference('FinanceYear', 'FinanceYear');116 $Desc = new ModelDesc(self::GetClassName()); 117 $Desc->AddReference('DocumentLine', DocumentLine::GetClassName()); 118 $Desc->AddReference('FinanceYear', FinanceYear::GetClassName()); 118 119 $Desc->AddInteger('NextNumber'); 119 120 $Desc->AddString('YearPrefix'); … … 126 127 static function GetDesc(): ModelDesc 127 128 { 128 $Desc = new ModelDesc( 'FinanceYear');129 $Desc = new ModelDesc(self::GetClassName()); 129 130 $Desc->AddInteger('Year'); 130 131 $Desc->AddDate('DateStart');
Note:
See TracChangeset
for help on using the changeset viewer.