Index: branches/5.1.x/units/taxes/taxes_config.php =================================================================== diff -u -N -r13549 -r14158 --- branches/5.1.x/units/taxes/taxes_config.php (.../taxes_config.php) (revision 13549) +++ branches/5.1.x/units/taxes/taxes_config.php (.../taxes_config.php) (revision 14158) @@ -1,6 +1,6 @@ 'TaxZoneId', 'TitleField' => 'Name', + 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('tax' => '!la_title_AddingTaxZone!'), - 'edit_status_labels' => Array ('tax' => '!la_title_EditingTaxZone!'), - 'new_titlefield' => Array ('tax' => '!la_title_NewTaxZone!'), - ), - 'taxes_list' =>Array ( 'prefixes' => Array ('tax_List'), - 'format' => "!la_title_Taxes!", - ), - 'taxes_edit' =>Array ( 'prefixes' => Array ('tax'), - 'new_titlefield' => Array ('tax' => '!la_title_NewTax!'), - 'format' => "#tax_status# '#tax_titlefield#' - !la_title_General!", - ), - - - ), + 'default' => Array ( + 'new_status_labels' => Array ('tax' => '!la_title_AddingTaxZone!'), + 'edit_status_labels' => Array ('tax' => '!la_title_EditingTaxZone!'), + ), + 'taxes_list' => Array ( + 'prefixes' => Array ('tax_List'), 'format' => "!la_title_Taxes!", + ), + 'taxes_edit' => Array ( + 'prefixes' => Array ('tax'), + 'new_titlefield' => Array ('tax' => '!la_title_NewTax!'), + 'format' => "#tax_status# '#tax_titlefield#' - !la_title_General!", + ), + ), + 'PermSection' => Array ('main' => 'in-commerce:taxes'), 'Sections' => Array ( Index: branches/5.1.x/admin_templates/orders/orders_edit_preview.tpl =================================================================== diff -u -N -r13946 -r14158 --- branches/5.1.x/admin_templates/orders/orders_edit_preview.tpl (.../orders_edit_preview.tpl) (revision 13946) +++ branches/5.1.x/admin_templates/orders/orders_edit_preview.tpl (.../orders_edit_preview.tpl) (revision 14158) @@ -362,11 +362,11 @@ - 43" class="order-totals-name">: + 43" class="order-totals-name">: - 43" class="order-totals-name">: + 43" class="order-totals-name">: Index: branches/5.1.x/install/upgrades.sql =================================================================== diff -u -N -r14064 -r14158 --- branches/5.1.x/install/upgrades.sql (.../upgrades.sql) (revision 14064) +++ branches/5.1.x/install/upgrades.sql (.../upgrades.sql) (revision 14158) @@ -197,4 +197,7 @@ # ===== v 5.1.1-RC1 ===== -# ===== v 5.1.1 ===== \ No newline at end of file +# ===== v 5.1.1 ===== + +# ===== v 5.1.2-B1 ===== +DELETE FROM Phrase WHERE PhraseKey = 'LA_TITLE_ADDING_ORDER_ITEM'; Index: branches/5.1.x/units/gateways/gw_classes/multicards.php =================================================================== diff -u -N -r13704 -r14158 --- branches/5.1.x/units/gateways/gw_classes/multicards.php (.../multicards.php) (revision 13704) +++ branches/5.1.x/units/gateways/gw_classes/multicards.php (.../multicards.php) (revision 14158) @@ -1,6 +1,6 @@ Load($order_id); $url = $this->Application->GetVar('user2'); - echo ''.$this->Application->Phrase('la_multicards_continue').''; + echo ''.$this->Application->Phrase('lu_text_MulticardsContinue').''; return 1; } Index: branches/5.1.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r13985 -r14158 --- branches/5.1.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 13985) +++ branches/5.1.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 14158) @@ -1,6 +1,6 @@ Application->getUnitOption('pr', 'TableName'); $pricing_idfield = $this->Application->getUnitOption('pr', 'IDField'); -// $sql = 'SELECT AccessDuration, AccessUnit, DurationType, AccessExpiration FROM %s WHERE %s = %s'; + + /* TODO check on implementation + $sql = 'SELECT AccessDuration, AccessUnit, DurationType, AccessExpiration FROM %s WHERE %s = %s'; + */ + $sql = 'SELECT * FROM %s WHERE %s = %s'; $pricing_id = $this->GetPricingId($item_id, $item_data); $item_data['PricingId'] = $pricing_id; $pricing_info = $this->Conn->GetRow( sprintf($sql, $pricing_table, $pricing_idfield, $pricing_id ) ); $unit_secs = Array(1 => 1, 2 => 60, 3 => 3600, 4 => 86400, 5 => 604800, 6 => 2592000, 7 => 31536000); -/* - // Customization healtheconomics.org + /* TODO check on implementation (code from customization healtheconomics.org) $item_data['DurationType'] = $pricing_info['DurationType']; - $item_data['AccessExpiration'] = $pricing_info['AccessExpiration']; - // Customization healtheconomics.org -- -*/ + $item_data['AccessExpiration'] = $pricing_info['AccessExpiration']; + */ $item_data['Duration'] = $pricing_info['AccessDuration'] * $unit_secs[ $pricing_info['AccessUnit'] ]; Index: branches/5.1.x/units/pricing/pricing_config.php =================================================================== diff -u -N -r13959 -r14158 --- branches/5.1.x/units/pricing/pricing_config.php (.../pricing_config.php) (revision 13959) +++ branches/5.1.x/units/pricing/pricing_config.php (.../pricing_config.php) (revision 14158) @@ -1,6 +1,6 @@ Array ( 0 => 'la_No', 1 => 'la_Yes', ), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, ), - 'GroupId' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), - // 'AccessRebillDate' => Array ('type'=> 'integer', 'min_value' => 0, 'max_value' => 31, 'not_null'=> '1', 'default'=>0), - // Customization healtheconomics.org - // 'DurationType' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (1 => 'la_opt_interval', 2 => 'la_opt_date'), 'not_null' => 1, 'default' => 1), - // 'AccessExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter'), - // Customization healtheconomics.org -- + 'GroupId' => Array ('type' => 'int', 'default' => 0, 'not_null' => 1), + + /* TODO implement these fields in business logic + 'AccessRebillDate' => Array ( + 'type'=> 'int', 'min_value' => 0, 'max_value' => 31, 'not_null'=> '1', 'default' => 0, + ), + 'DurationType' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 1 => 'la_opt_Interval', 2 => 'la_opt_Date', + ), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 1, + ), + 'AccessExpiration' => Array ('type' => 'int', 'formatter' => 'kDateFormatter'), + */ ), 'VirtualFields' => Array ( Index: branches/5.1.x/admin_templates/products/option_edit.tpl =================================================================== diff -u -N -r14152 -r14158 --- branches/5.1.x/admin_templates/products/option_edit.tpl (.../option_edit.tpl) (revision 14152) +++ branches/5.1.x/admin_templates/products/option_edit.tpl (.../option_edit.tpl) (revision 14158) @@ -298,7 +298,7 @@ -   + :   " id=""> @@ -340,7 +340,7 @@ - + Index: branches/5.1.x/units/reports/reports_tag_processor.php =================================================================== diff -u -N -r13100 -r14158 --- branches/5.1.x/units/reports/reports_tag_processor.php (.../reports_tag_processor.php) (revision 13100) +++ branches/5.1.x/units/reports/reports_tag_processor.php (.../reports_tag_processor.php) (revision 14158) @@ -1,6 +1,6 @@ ID = 1; $object->SetDBField('Metric', $metric); -// echo '
';
-//		print_r($a_report_options);
-//		echo date('m/d/Y H:i:s', $a_report_options['from']).'
'; -// echo date('m/d/Y H:i:s', $a_report_options['to']).'
'; - if (!($a_report_options['from'] && $a_report_options['to'])) { // calculate from & to as extreme order dates $sql = 'SELECT MAX(OrderDate) AS date_to, MIN(OrderDate) AS date_frm @@ -331,7 +326,7 @@ { $a_data[0] = Array( 'Metric' => $other_metric, - 'Name' => $this->Application->Phrase('la_Others'), + 'Name' => $this->Application->Phrase('la_text_Others'), ); } } Index: branches/5.1.x/units/manufacturers/manufacturers_config.php =================================================================== diff -u -N -r13657 -r14158 --- branches/5.1.x/units/manufacturers/manufacturers_config.php (.../manufacturers_config.php) (revision 13657) +++ branches/5.1.x/units/manufacturers/manufacturers_config.php (.../manufacturers_config.php) (revision 14158) @@ -1,6 +1,6 @@ Array (), 'TableName' => TABLE_PREFIX.'Manufacturers', - 'TitlePresets' => Array ( - 'default' => Array ( 'new_status_labels' => Array ('manuf' => '!la_title_AddingManufacturer!'), - 'edit_status_labels' => Array ('manuf' => '!la_title_EditingManufacturer!'), - 'new_titlefield' => Array ('manuf' => '!la_title_NewManufacturers!'), - ), + 'TitlePresets' => Array ( + 'default' => Array ( + 'new_status_labels' => Array ('manuf' => '!la_title_AddingManufacturer!'), + 'edit_status_labels' => Array ('manuf' => '!la_title_EditingManufacturer!'), + ), + 'manuf_list' => Array ( + 'prefixes' => Array ('manuf_List'), 'format' => "!la_title_Manufacturers!", + ), + 'manuf_edit' => Array ( + 'prefixes' => Array ('manuf'), + 'new_titlefield' => Array ('manuf' => '!la_title_NewManufacturer!'), + 'format' => "#manuf_status# '#manuf_titlefield#' - !la_title_General!", + ), + ), - 'manuf_list' =>Array ( 'prefixes' => Array ('manuf_List'), - 'format' => "!la_title_Manufacturers!", - ), - - 'manuf_edit' =>Array ( 'prefixes' => Array ('manuf'), - 'new_titlefield' => Array ('manuf' => '!la_title_NewManufacturer!'), - 'format' => "#manuf_status# '#manuf_titlefield#' - !la_title_General!", - ), - - ), - 'PermSection' => Array ('main' => 'in-commerce:manufacturers'), 'Sections' => Array ( Index: branches/5.1.x/admin_templates/reports/reports.tpl =================================================================== diff -u -N -r13946 -r14158 --- branches/5.1.x/admin_templates/reports/reports.tpl (.../reports.tpl) (revision 13946) +++ branches/5.1.x/admin_templates/reports/reports.tpl (.../reports.tpl) (revision 14158) @@ -88,8 +88,10 @@ - + Index: branches/5.1.x/admin_templates/products/access_pricing_edit.tpl =================================================================== diff -u -N -r14152 -r14158 --- branches/5.1.x/admin_templates/products/access_pricing_edit.tpl (.../access_pricing_edit.tpl) (revision 14152) +++ branches/5.1.x/admin_templates/products/access_pricing_edit.tpl (.../access_pricing_edit.tpl) (revision 14158) @@ -59,17 +59,12 @@ - - - - - - - - + ## --> + Index: branches/5.1.x/units/orders/orders_config.php =================================================================== diff -u -N -r13959 -r14158 --- branches/5.1.x/units/orders/orders_config.php (.../orders_config.php) (revision 13959) +++ branches/5.1.x/units/orders/orders_config.php (.../orders_config.php) (revision 14158) @@ -1,6 +1,6 @@ Array ('prefixes' => Array ('ord'), 'format' => "!la_title_OrderGWResult!"), - 'order_items_edit' => Array ( 'prefixes' => Array ('ord', 'orditems'), - 'new_status_labels' => Array ('orditems' => '!la_title_Adding_Order_Item!'), - 'edit_status_labels' => Array ('orditems' => '!la_title_Editing_Order_Item!'), - 'new_titlefield' => Array ('orditems' => '!la_title_New_Order_Item!'), - 'format' => "#ord_status# '#ord_titlefield#' - #orditems_status# '#orditems_titlefield#'", - ), + 'orders_export' => Array ('format' => '!la_title_OrdersExport!'), - 'orders_export' => Array ('format' => '!la_title_OrdersExport!'), - - 'orders_product_edit' => Array ('format' => '!la_title_Editing_Order_Item!'), - + 'orders_product_edit' => Array ('format' => '!la_title_Editing_Order_Item!'), ), 'EditTabPresets' => Array ( @@ -399,15 +391,32 @@ 'ReturnTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), 'CostTotal' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), 'OriginalAmount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00'), - 'ShippingOption' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_ship_all_together', 1 => 'la_ship_backorder_separately', 2 => 'la_ship_backorders_upon_avail'), 'not_null' => 1, 'default' =>0), - 'ShippingGroupOption' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' => Array (0 => 'la_auto_group_shipments', 1 => 'la_manual_group_shipments'), 'default' =>0), + 'ShippingOption' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array ( + 0 => 'la_ship_all_together', 1 => 'la_ship_backorder_separately', 2 => 'la_ship_backorders_upon_avail', + ), + 'use_phrases' => 1, 'not_null' => 1, 'default' => 0, + ), + 'ShippingGroupOption' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array (0 => 'la_opt_AutoGroupShipments', 1 => 'la_opt_ManualGroupShipments'), + 'not_null' => 1, 'default' => 0, + ), 'GiftCertificateId' => Array ('type' => 'int', 'default' => null), 'GiftCertificateDiscount' => Array ('type' => 'float', 'formatter' => 'kFormatter', 'format' => '%01.2f', 'not_null' => 1, 'default' => '0.00',), 'ShippingInfo' => Array ('type' => 'string', 'default' => NULL), 'CouponId' => Array ('type' => 'int', 'default' => null), 'CouponDiscount' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), 'DiscountTotal' => Array ('type' => 'float', 'not_null' => 1, 'default' => '0.00', 'formatter' => 'kFormatter', 'format' => '%01.2f'), - 'TransactionStatus' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (0=> 'la_Invalid', 1 => 'la_Verified', 2 => 'la_Penging'), 'use_phrases' =>1, 'not_null' => 1, 'default' => 2), + 'TransactionStatus' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', + 'options' => Array (0 => 'la_opt_Invalid', 1 => 'la_opt_Verified', 2 => 'la_opt_Penging'), + 'use_phrases' =>1, 'not_null' => 1, 'default' => 2, + ), 'GWResult1' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), 'GWResult2' => Array ('type' => 'string', 'formatter' => 'kSerializedFormatter', 'default' => NULL), 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'PortalUser pu ON pu.PortalUserId = af.PortalUserId WHERE `%s` = \'%s\'', 'left_key_field' => 'AffiliateId', 'left_title_field' => 'Login', 'not_null' =>1, 'default' =>0), Index: branches/5.1.x/units/products/products_config.php =================================================================== diff -u -N -r14137 -r14158 --- branches/5.1.x/units/products/products_config.php (.../products_config.php) (revision 14137) +++ branches/5.1.x/units/products/products_config.php (.../products_config.php) (revision 14158) @@ -1,6 +1,6 @@ Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), 'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' =>null), - 'Type' => Array ('type' => 'int', 'not_null' => 1, 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, 'options' =>Array (1=> 'la_product_tangible', 2=> 'la_product_subscription', 4=> 'la_product_downloadable', 3=> 'la_product_service'/*, 6=> 'la_gift_certificate', 5=> 'la_product_package'*/), 'not_null' => 1, 'default' => 1 ), + 'Type' => Array ( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1, + 'options' => Array ( + PRODUCT_TYPE_TANGIBLE => 'la_product_tangible', + PRODUCT_TYPE_SUBSCRIPTION => 'la_product_subscription', + PRODUCT_TYPE_SERVICE => 'la_product_service', + PRODUCT_TYPE_DOWNLOADABLE => 'la_product_downloadable', + /* PRODUCT_TYPE_PACKAGE => 'la_product_package', */ + ), + 'not_null' => 1, 'default' => 1, + ), 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), 'ModifiedById' => Array ('type' => 'int', 'default' => NULL), 'CreatedById' => Array ( Index: branches/5.1.x/units/affiliate_payments/affiliate_payments_config.php =================================================================== diff -u -N -r13959 -r14158 --- branches/5.1.x/units/affiliate_payments/affiliate_payments_config.php (.../affiliate_payments_config.php) (revision 13959) +++ branches/5.1.x/units/affiliate_payments/affiliate_payments_config.php (.../affiliate_payments_config.php) (revision 14158) @@ -1,6 +1,6 @@ 'AffiliatePaymentId', - 'TitlePresets' => Array( - 'default' => Array( 'new_status_labels' => Array('apayments'=>'!la_title_Adding_Affiliate_Payment!'), - 'edit_status_labels' => Array('apayments'=>'!la_title_Editing_Affiliate_Payment!'), - 'new_titlefield' => Array('apayments'=>'!la_title_New_Affiliate_Payment!'), - ), - 'payments_log' => Array('prefixes' => Array('apayments.log_List'), 'format' => "!la_title_AffiliatePayments!"), + 'TitlePresets' => Array ( + 'payments_log' => Array ( + 'prefixes' => Array ('apayments.log_List'), 'format' => "!la_title_AffiliatePayments!", + ), + ), - ), - 'Sections' => Array( 'in-commerce:paymentlog' => Array( 'parent' => 'in-commerce', Index: branches/5.1.x/units/gateways/gateways_config.php =================================================================== diff -u -N -r13959 -r14158 --- branches/5.1.x/units/gateways/gateways_config.php (.../gateways_config.php) (revision 13959) +++ branches/5.1.x/units/gateways/gateways_config.php (.../gateways_config.php) (revision 14158) @@ -1,6 +1,6 @@ 'GWConfigFieldId', 'TableName' => TABLE_PREFIX.'GatewayConfigFields', - 'ListSQLs' => Array (''=>'SELECT * FROM %s', - ), // key - special, value - list select sql - 'ItemSQLs' => Array( ''=>'SELECT * FROM %s', - ), + 'ListSQLs' => Array ( + '' => 'SELECT * FROM %s', + ), // key - special, value - list select sql + + 'ItemSQLs' => Array ( + ''=>'SELECT * FROM %s', + ), 'Fields' => Array ( 'GWConfigFieldId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), @@ -65,21 +68,7 @@ 'GatewayId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0, ), ), - 'VirtualFields' => Array ( - 'Value' => Array('type' => 'string', 'default' => ''), - ), - - 'Grids' => Array( - 'Default' => Array( - 'Icons' => Array( - 'default' => 'icon16_item.png', - 'module' => 'core', - ), - 'Fields' => Array( - 'FieldName' => Array( 'title'=>'la_Fields' ), - 'Value' => Array( 'title'=>'la_Value' ), - ), - - ), - ), + 'VirtualFields' => Array ( + 'Value' => Array('type' => 'string', 'default' => ''), + ), ); \ No newline at end of file Index: branches/5.1.x/admin_templates/products/products_access.tpl =================================================================== diff -u -N -r13946 -r14158 --- branches/5.1.x/admin_templates/products/products_access.tpl (.../products_access.tpl) (revision 13946) +++ branches/5.1.x/admin_templates/products/products_access.tpl (.../products_access.tpl) (revision 14158) @@ -85,12 +85,17 @@ - - - - - - + + + + Index: branches/5.1.x/admin_templates/orders/orders_edit_shipping.tpl =================================================================== diff -u -N -r13985 -r14158 --- branches/5.1.x/admin_templates/orders/orders_edit_shipping.tpl (.../orders_edit_shipping.tpl) (revision 13985) +++ branches/5.1.x/admin_templates/orders/orders_edit_shipping.tpl (.../orders_edit_shipping.tpl) (revision 14158) @@ -105,7 +105,9 @@ name="" id="_" value=""> 
- +