Changeset View
Standalone View
modules/in-commerce/units/orders/orders_config.php
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | |||||
'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), | 'url' => Array ('t' => 'in-commerce/orders/orders_pending_list', 'pass' => 'm'), | ||||
'status' => ORDER_STATUS_PENDING, | 'status' => ORDER_STATUS_PENDING, | ||||
), | ), | ||||
), | ), | ||||
'TableName' => TABLE_PREFIX . 'Orders', | 'TableName' => TABLE_PREFIX . 'Orders', | ||||
'CalculatedFields' => Array ( | 'CalculatedFields' => Array ( | ||||
'' => Array ( | '' => Array ( | ||||
Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
'CustomerName' => 'IF( ISNULL(u.Username), IF (%1$s.PortalUserId = ' . USER_ROOT . ', "root", IF (%1$s.PortalUserId = ' . USER_GUEST . ', "Guest", "n/a")), CONCAT(u.FirstName," ",u.LastName) )', | 'CustomerName' => 'IF( ISNULL(u.Username), IF (%1$s.PortalUserId = ' . USER_ROOT . ', "root", IF (%1$s.PortalUserId = ' . USER_GUEST . ', "Guest", IF (%1$s.PortalUserId = ' . USER_SYSTEM . ', "system", "n/a"))), CONCAT(u.FirstName," ",u.LastName) )', | ||||
'Username' => 'IF( ISNULL(u.Username),"root",IF(u.Username = "", u.Email, u.Username))', | 'Username' => 'IF( ISNULL(u.Username),"root",IF(u.Username = "", u.Email, u.Username))', | ||||
'OrderNumber' => 'CONCAT(LPAD(%1$s.Number,6,"0"),\'-\',LPAD(%1$s.SubNumber,3,"0") )', | 'OrderNumber' => 'CONCAT(LPAD(%1$s.Number,6,"0"),\'-\',LPAD(%1$s.SubNumber,3,"0") )', | ||||
'SubtotalWithoutDiscount' => '(%1$s.SubTotal + %1$s.DiscountTotal)', | 'SubtotalWithoutDiscount' => '(%1$s.SubTotal + %1$s.DiscountTotal)', | ||||
'SubtotalWithDiscount' => '(%1$s.SubTotal)', | 'SubtotalWithDiscount' => '(%1$s.SubTotal)', | ||||
'AmountWithoutVAT' => '(%1$s.SubTotal+IF(%1$s.ShippingTaxable=1, %1$s.ShippingCost, 0)+IF(%1$s.ProcessingTaxable=1, %1$s.ProcessingFee, 0)-IF(%1$s.VATIncluded=1,%1$s.VAT,0))', | 'AmountWithoutVAT' => '(%1$s.SubTotal+IF(%1$s.ShippingTaxable=1, %1$s.ShippingCost, 0)+IF(%1$s.ProcessingTaxable=1, %1$s.ProcessingFee, 0)-IF(%1$s.VATIncluded=1,%1$s.VAT,0))', | ||||
'TotalAmount' => '%1$s.SubTotal+%1$s.ShippingCost+IF(%1$s.VATIncluded=1,0,%1$s.VAT)+%1$s.ProcessingFee+%1$s.InsuranceFee-%1$s.GiftCertificateDiscount', | 'TotalAmount' => '%1$s.SubTotal+%1$s.ShippingCost+IF(%1$s.VATIncluded=1,0,%1$s.VAT)+%1$s.ProcessingFee+%1$s.InsuranceFee-%1$s.GiftCertificateDiscount', | ||||
'CouponCode' => 'pc.Code', | 'CouponCode' => 'pc.Code', | ||||
'CouponName' => 'pc.Name', | 'CouponName' => 'pc.Name', | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
'SubNumber' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('Number'), 'format' => '%03d', 'max_value_inc'>999, 'not_null' => 1, 'default' => 0), | 'SubNumber' => Array ('type' => 'int', 'required' =>1, 'formatter' => 'kFormatter', 'unique' =>Array ('Number'), 'format' => '%03d', 'max_value_inc'>999, 'not_null' => 1, 'default' => 0), | ||||
'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' =>Array (0=> 'la_Incomplete',1=> 'la_Pending',2=> 'la_BackOrders',3=> 'la_ToShip',4=> 'la_Processed',5=> 'la_Denied',6=> 'la_Archived'), 'use_phrases' =>1, 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), | 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' =>Array (0=> 'la_Incomplete',1=> 'la_Pending',2=> 'la_BackOrders',3=> 'la_ToShip',4=> 'la_Processed',5=> 'la_Denied',6=> 'la_Archived'), 'use_phrases' =>1, 'not_null' => 1, 'default' => 0, 'filter_type' => 'equals'), | ||||
'OnHold' => Array ( | 'OnHold' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kOptionsFormatter', | 'formatter' => 'kOptionsFormatter', | ||||
'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, | 'options' => Array (0 => 'la_No', 1 => 'la_Yes'), 'use_phrases' => 1, | ||||
'not_null' => 1, 'default' => 0, | 'not_null' => 1, 'default' => 0, | ||||
), | ), | ||||
'OrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), | 'OrderDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), | ||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
'PortalUserId' =>Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' =>Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE %s', 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, 'required' =>1, 'not_null' =>1, 'default' =>-1), | 'PortalUserId' =>Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' =>Array (USER_ROOT => 'root', USER_SYSTEM => 'system', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Users WHERE %s', 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, 'required' =>1, 'not_null' =>1, 'default' =>-1), | ||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Whitespace must follow the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
Whitespace must follow the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
Whitespace must follow the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
Whitespace must follow the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
Whitespace must follow the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'OrderIP' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), | 'OrderIP' => Array ('type' => 'string', 'not_null' => 1, 'default' => '', 'filter_type' => 'like'), | ||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'UserComment' => Array ('type' => 'string', 'default' => NULL), | 'UserComment' => Array ('type' => 'string', 'default' => NULL), | ||||
'AdminComment' => Array ('type' => 'string', 'default' => NULL), | 'AdminComment' => Array ('type' => 'string', 'default' => NULL), | ||||
'BillingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | 'BillingTo' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | ||||
'BillingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | 'BillingCompany' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | ||||
'BillingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | 'BillingPhone' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | ||||
'BillingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | 'BillingFax' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), | ||||
'BillingEmail' => Array ( | 'BillingEmail' => Array ( | ||||
'type' => 'string', | 'type' => 'string', | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |
There must be no space between the Array keyword and the opening parenthesis