Przeglądaj źródła

added format to ZamZlec.netto

Piotr Labudda 9 lat temu
rodzic
commit
da187e258d

+ 1 - 0
SE/schema/gui/company/biuro_pro_netmedia_pl/default_db.crm_lista_zasobow_orders.php

@@ -11,6 +11,7 @@ class Schema__biuro_pro_netmedia_pl__default_db__crm_lista_zasobow_orders extend
 			'remote_table_name' => 'CRM_LISTA_ZASOBOW_ORDERS_summary_view',
 			'remote_join_key' => 'ID',
 			'remote_column_value' => 'SUM_POS',
+			'format' => '<span style="text-align:right">{0}</span>',
 		];
 	}
 

+ 4 - 0
SE/se-lib/TableAjax.php

@@ -6075,6 +6075,10 @@ jQuery(document).ready(function(){
 						break;
 					case 'p5':
 						switch ($ex[1]) {
+							case 'alias': {
+								$format = $acl->getXsdFieldParam($col, 'format');
+								if ($format) $columnConfig->format = $format;
+							} break;
 							case 'string': {
 								$columnConfig->type = 'p5:string';
 								$columnConfig->formatByValue = $acl->getXsdFieldParam($col, 'formatByValue');