Changeset 3417629
- Timestamp:
- 12/11/2025 05:26:25 PM (3 months ago)
- Location:
- pb-shipping/trunk
- Files:
-
- 3 edited
-
pb_functions.php (modified) (9 diffs)
-
pb_queue.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pb-shipping/trunk/pb_functions.php
r3413292 r3417629 6 6 Author: RLDD 7 7 Author URI: https://richardlerma.com/contact/ 8 Version: 5.0.2 08 Version: 5.0.21 9 9 Copyright: (c) 2020-2025 rldd.net - All Rights Reserved 10 10 License: GPLv3 or later … … 14 14 */ 15 15 16 global $espb_version; $espb_version='5.0.2 0';16 global $espb_version; $espb_version='5.0.21'; 17 17 if(!defined('ABSPATH')) exit; 18 18 … … 965 965 if(!empty($error)) return $error; 966 966 967 $rates=$rate=$sel_rate=$ class=$parceltypes=$filter_parcel=$sel_charge=$switch_opt=$svc_desc='';967 $rates=$rate=$sel_rate=$parceltypes=$filter_parcel=$sel_charge=$switch_opt=$svc_desc=''; 968 968 $svc_descs=array( 969 969 array('svc'=>'UGA','name'=>'Ground Advantage'), … … 992 992 if($r_ratetypeid=='RETAIL' && (stripos($rates,'CONTRACT')!==false || stripos($rates,'COMMERCIAL')!==false)) {$rate=''; continue;} 993 993 994 if(($serviceid==$r_serviceid || ($serviceid=='HOM' && $r_serviceid=='GRD')) && ($parceltype==$r_parceltype || empty($parceltype)) && empty($class)) {994 if(($serviceid==$r_serviceid || ($serviceid=='HOM' && $r_serviceid=='GRD')) && ($parceltype==$r_parceltype || empty($parceltype))) { 995 995 if($carrier=='FEDEX' && $r_serviceid=='GRD') { 996 996 if($serviceid=='HOM') {$r_serviceid='HOM'; $hom_sel='selected';} else $hom_sel=''; … … 999 999 } 1000 1000 1001 if($serviceid==$r_serviceid && ($parceltype==$r_parceltype || empty($parceltype)) && empty($class)) {1001 if($serviceid==$r_serviceid && ($parceltype==$r_parceltype || empty($parceltype))) { 1002 1002 $sel_rate="<div class='rate selected' title='$r_serviceid-$r_parceltype-$r_ratetypeid' id='$r_serviceid-$r_parceltype' onclick=\"select_div(this.id,'rate','serviceid','$r_serviceid');select_div(this.id,'rate','parceltype','$r_parceltype');pb_getE('charge').value='$charge';\">$rate$switch_opt</div>"; 1003 1003 $sel_charge=$charge; … … 1372 1372 1373 1373 function espb_report_history($report_id=0) { 1374 $history=$filter=$goback=$last_date=$ class=$rpt_status='';1374 $history=$filter=$goback=$last_date=$rpt_status=''; 1375 1375 $url=admin_url('admin.php?page=pb-reports'); 1376 1376 if($report_id>0) $filter="AND ID=$report_id"; else $filter="AND post_status!='trash'"; … … 1419 1419 } else $view_label=''; 1420 1420 1421 if($last_date!=substr($rpt_date,0,10)) if(empty($class)) $class="class='even'"; else $class='';1422 1421 $last_date=substr($rpt_date,0,10); 1423 1422 $avg_cost=$avg_wt=''; … … 1429 1428 $avg_wt="<br>".number_format(($wt/$items),2).$weight_unit; 1430 1429 } else $tot_wt=$avg_wt=''; 1431 $history.="<tr $classtitle='Report ID $rpt_id' $list_items_row><td>$rpt_date</td><td>$rpt_title</td><td>$$cost{$tot_wt}</td><td>$$avg_cost{$avg_wt}</td><td>$rpt_user</td><td nowrap>$list_items $view_label</td></tr>";1430 $history.="<tr title='Report ID $rpt_id' $list_items_row><td>$rpt_date</td><td>$rpt_title</td><td>$$cost{$tot_wt}</td><td>$$avg_cost{$avg_wt}</td><td>$rpt_user</td><td nowrap>$list_items $view_label</td></tr>"; 1432 1431 } 1433 1432 $history=" … … 1548 1547 .pb_rpt tr{-webkit-transition:all .5s;transition:all .5s} 1549 1548 .pb_rpt tr.pb_del{opacity:0} 1550 .pb_rpt tr.even{color:#fff;background:var(--bgd_hl_clr);}1551 .pb_rpt tr.even td a{background:#fff;border:1px solid #fff}1552 1549 .pb_rpt tr:hover{cursor:pointer;color:#fff;background:var(--bgd_hl_clr)} 1553 1550 .admin_report.pb_rpt tr:hover{background:var(--txt_hl_clr)} 1554 .admin_report.pb_rpt tr.even:hover{background:#015e88}1555 1551 .pb_rpt td .dashicons{color:#DDD;vertical-align:bottom} 1556 1552 .pb_rpt tr:hover a{color:#fff} 1557 1553 .pb_rpt td a{border:1px solid #ddd;padding:.5em;border-radius:5px} 1558 1554 .pb_rpt tr:hover td a{background:#fff;color:var(--bgd_hl_clr);border:1px solid #fff} 1559 .woocommerce_page_pb-queue .pb_rpt tr:nth-child(even){background:#d2d0ce57} 1555 .pb_rpt tr:nth-child(even){background:#d2d0ce57} 1556 .pb_rpt tr:nth-child(even):hover{background:var(--bgd_hl_clr);} 1560 1557 .pb_rpt td a.pb_remove{background:transparent!important;border:none!important;color:#ddd!important} 1561 1558 .pb_rpt td a.pb_remove:hover{color:#fff!important;background:red!important} -
pb-shipping/trunk/pb_queue.php
r3413292 r3417629 92 92 FROM ( 93 93 SELECT o.ID, o2.post_type 94 , o.post_date94 ,IFNULL((SELECT date_paid FROM wp_wc_order_stats WHERE order_id=o.ID AND date_paid IS NOT NULL),o.post_date)post_date 95 95 ,REPLACE(CONCAT((SELECT DISTINCT post_title FROM wp_posts WHERE ID=IFNULL(ip.product_id,op.product_id)),'(',SUM(IFNULL(op.product_qty,ip.product_qty)),')'),'(1)','')item 96 96 ,o2.reship … … 160 160 FROM ( 161 161 SELECT o.ID, post_type 162 , o.post_date162 ,IFNULL((SELECT date_paid FROM wp_wc_order_stats WHERE order_id=o.ID AND date_paid IS NOT NULL),o.post_date)post_date 163 163 ,REPLACE(CONCAT((SELECT DISTINCT post_title FROM wp_posts WHERE ID=IFNULL(ip.product_id,op.product_id)),'(',SUM(IFNULL(op.product_qty,ip.product_qty)),')'),'(1)','')item 164 164 ,o2.reship -
pb-shipping/trunk/readme.txt
r3413292 r3417629 6 6 Requires at least: 4.6 7 7 Tested up to: 6.9 8 Stable tag: 5.0.2 08 Stable tag: 5.0.21 9 9 10 10 A streamlined US shipping solution for WooCommerce and Pitney Bowes. … … 37 37 38 38 == Changelog == 39 = 5.0.21 = * Queue updates and aesthetic improvements 39 40 = 5.0.20 = * Variation meta improvements to queue and ship screen. 40 41 = 5.0.19 = * Compatibility with WC 10.3. Variation meta in queue and packing slip.
Note: See TracChangeset
for help on using the changeset viewer.