1919
2020namespace FacturaScripts \Plugins \AsientosPredefinidos \Controller ;
2121
22- use FacturaScripts \Core \Base \ DataBase \ DataBaseWhere ;
22+ use FacturaScripts \Core \Where ;
2323use FacturaScripts \Core \Lib \ExtendedController \EditController ;
2424use FacturaScripts \Core \Tools ;
2525
@@ -132,17 +132,17 @@ protected function loadData($viewName, $view)
132132
133133 switch ($ viewName ) {
134134 case 'EditAsientoPredefinidoLinea ' :
135- $ where = [new DataBaseWhere ('idasientopre ' , $ id )];
135+ $ where = [Where:: eq ('idasientopre ' , $ id )];
136136 $ view ->loadData ('' , $ where , ['orden ' => 'ASC ' , 'idasientopre ' => 'ASC ' ]);
137137 break ;
138138
139139 case 'EditAsientoPredefinidoVariable ' :
140- $ where = [new DataBaseWhere ('idasientopre ' , $ id )];
140+ $ where = [Where:: eq ('idasientopre ' , $ id )];
141141 $ view ->loadData ('' , $ where , ['idasientopre ' => 'ASC ' , 'codigo ' => 'ASC ' ]);
142142 break ;
143143
144144 case 'ListAsiento ' :
145- $ where = [new DataBaseWhere ('idasientopre ' , $ id )];
145+ $ where = [Where:: eq ('idasientopre ' , $ id )];
146146 $ view ->loadData ('' , $ where );
147147 break ;
148148
@@ -152,3 +152,5 @@ protected function loadData($viewName, $view)
152152 }
153153 }
154154}
155+
156+
0 commit comments