Advertisement
vazabisong

public SN-Fashion template invoice

May 1st, 2020
1,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.26 KB | None | 0 0
  1. <script type="text/javascript">
  2.     var lastMile3PLs = [];
  3.     lastMile3PLs['Kerry'] = 'Kerry';
  4.     lastMile3PLs['Seller Own Delivery'] = 'SOFP_TH';
  5.     lastMile3PLs['LEX'] = 'LEX TH';
  6.     lastMile3PLs['LEX dropoff'] = 'LEX TH';
  7.     lastMile3PLs['TP Thailand'] = 'Thai Parcel';
  8.     lastMile3PLs['AcommerceTH'] = 'AcommerceTH';
  9.     lastMile3PLs['AS-FedEx'] = 'AS-FedEx';
  10.     lastMile3PLs['AS-dhl'] = 'AS-dhl';
  11.     lastMile3PLs['AS-dhl-2'] = 'AS-dhl';
  12.     lastMile3PLs['AS-ups'] = 'AS-ups';
  13.     lastMile3PLs['AS-aramex'] = 'AS-aramex';
  14.     lastMile3PLs['AS-Kerry-logistics'] = 'AS-Kerry-logistics';
  15.     lastMile3PLs['Yusen'] = 'Yusen';
  16.     lastMile3PLs['Kerry(insured)'] = 'Kerry(insured)';
  17.     lastMile3PLs['LEX+ Kerry'] = 'Kerry';
  18.     lastMile3PLs['LEX+ Kerry (insured)'] = 'Kerry(insured)';
  19.     lastMile3PLs['AS-LWE-Express'] = 'AS-LWE-Express';
  20.     lastMile3PLs['Thai Post_Dropoff'] = 'ThaiPost';
  21.     lastMile3PLs['LGS-FM40-seller system'] = 'LGS';
  22.     lastMile3PLs['LEX+Thai Post'] = 'ThaiPost';
  23.     lastMile3PLs['Kerry_dropoff'] = 'Kerry';
  24.     lastMile3PLs['TP Thailand_Dropoff'] = 'Thai Parcel';
  25.     lastMile3PLs['DHLTH'] = 'DHL';
  26.     lastMile3PLs['LGS-FM01'] = 'LGS';
  27.     lastMile3PLs['LGS-FM40'] = 'LGS';
  28.     lastMile3PLs['LGS-FM41'] = 'LGS';
  29.     lastMile3PLs['LGS-FM42'] = 'LGS';
  30.     lastMile3PLs['V-cargo'] = 'V-cargo';
  31.     lastMile3PLs['LEX dropoff'] = 'LEX TH';
  32.     lastMile3PLs['LGS-FM43'] = 'LGS';
  33.     lastMile3PLs['Testing 3PL TMS'] = 'AcommerceTH';
  34.     lastMile3PLs['LEX-dropoff+Kerry'] = 'Kerry';
  35.     lastMile3PLs['LEX-dropoff+Kerry (insured)'] = 'Kerry(insured)';
  36.     lastMile3PLs['LEX-dropoff+DHLTH'] = 'DHL';
  37.     lastMile3PLs['LEX-dropoff+Thai Post'] = 'ThaiPost';
  38.     lastMile3PLs['LEX-dropoff+TP Thailand'] = 'Thai Parcel';
  39.     lastMile3PLs['DHLTH_dropoff'] = 'DHL';
  40.     lastMile3PLs['LGS-FM50'] = 'LGS';
  41.     lastMile3PLs['SBM'] = 'SBM TH';
  42.     lastMile3PLs['DHLSC+NJV FM'] = 'NinjaVanTH';
  43.     lastMile3PLs['DHLSC+NJV LM'] = 'NinjaVanTH';
  44.     lastMile3PLs['DHLSC+TP Thailand FM'] = 'Thai Parcel';
  45.     lastMile3PLs['DHLSC+TP Thailand LM'] = 'Thai Parcel';
  46.     lastMile3PLs['DHLSC+LEX FM'] = 'LEX TH';
  47.     lastMile3PLs['DHLSC+LEX LM'] = 'LEX TH';
  48.     lastMile3PLs['DHLSC+Yusen FM'] = 'Yusen';
  49.     lastMile3PLs['DHLSC+Yusen LM'] = 'Yusen';
  50.     lastMile3PLs['DHLSC+Vcargo FM'] = 'V-cargo';
  51.     lastMile3PLs['DHLSC+Vcargo LM'] = 'V-cargo';
  52.     lastMile3PLs['NJV+TP Thailand FM'] = 'Thai Parcel';
  53.     lastMile3PLs['NJV+TP Thailand LM'] = 'Thai Parcel';
  54.     lastMile3PLs['NJV+LEX FM'] = 'LEX TH';
  55.     lastMile3PLs['NJV+LEX LM'] = 'LEX TH';
  56.     lastMile3PLs['NJV'] = 'NinjaVanTH';
  57.     lastMile3PLs['TP Thailand+NJV FM'] = 'NinjaVanTH';
  58.     lastMile3PLs['TP Thailand+NJV LM'] = 'NinjaVanTH';
  59.     lastMile3PLs['TP Thailand+LEX FM'] = 'LEX TH';
  60.     lastMile3PLs['TP Thailand+LEX LM'] = 'LEX TH';
  61.     lastMile3PLs['AS-Rincos'] = 'AS-Rincos';
  62.     lastMile3PLs['AS-ECMS'] = 'AS-ECMS';
  63.     lastMile3PLs['DHLSC+CJGLS FM'] = 'CJGLS';
  64.     lastMile3PLs['DHLSC+CJGLS LM'] = 'CJGLS';
  65.     lastMile3PLs['TP Thailand+CJGLS FM'] = 'CJGLS';
  66.     lastMile3PLs['TP Thailand+CJGLS LM'] = 'CJGLS';
  67.     lastMile3PLs['CJGLS'] = 'CJGLS';
  68.     lastMile3PLs['DHLSC'] = 'DHLSC';
  69.     lastMile3PLs['ThaiPost'] = 'ThaiPost';
  70.     lastMile3PLs['LGS-SZXABKK18'] = 'LGS';
  71.     lastMile3PLs['LGS-SZXABKK19'] = 'LGS';
  72.     lastMile3PLs['AS-india-post-int'] = 'AS-india-post-int';
  73.     lastMile3PLs['AS-DTDC'] = 'as-data';
  74.     lastMile3PLs['AS-Delhivery'] = 'as-delhivery';
  75.     lastMile3PLs['7-Eleven'] = '7-Eleven';
  76.     lastMile3PLs['DHCLM'] = 'DSCLM';
  77.     lastMile3PLs['LF'] = 'LF';
  78.     lastMile3PLs['AS-LOGISTHAI'] = 'AS-LOGISTHAI';
  79.     lastMile3PLs['Logisthai'] = 'Logisthai';
  80.     lastMile3PLs['LGS-FM20'] = 'Cainiao';
  81.     lastMile3PLs['LGS-FM21'] = 'Cainiao';
  82.     lastMile3PLs['BEST'] = 'Best';
  83.     lastMile3PLs['The Lorry'] = 'The Lorry';
  84.     lastMile3PLs['Nim Express'] = 'Nim Express';
  85.     lastMile3PLs['Deliveree'] = 'Deliveree';
  86.     lastMile3PLs['Giztix'] = 'Giztix';
  87.     lastMile3PLs['Flash Express'] = 'Flash Express';
  88.     lastMile3PLs['J&amp;T TH'] = 'J&T Express Thailand';
  89.     var lastMile3PL = lastMile3PLs['{{shipping_provider}}'];
  90.  
  91.     var FM = "{{first_mile_shipping_provider}}";
  92.     document.getElementById("FM").innerText = FM;
  93.     document.getElementById("lastMile3PL").innerText = lastMile3PL;
  94.     console.log(FM, lastMile3PL);
  95. </script>
  96. <div style="display:none;">
  97.     <h1 id="FM">&nbsp;</h1>
  98.  
  99.     <h1 id="lastMile3PL">&nbsp;</h1>
  100. </div>
  101. <link href="chrome-extension://ojdacaeifolmomdnjodfmojipkmkboii/css/bootstrap.min.css" rel="stylesheet" />
  102. <style type="text/css">
  103.     .barcode-100 img {
  104.         width: 200px;
  105.         height: 70px;
  106.     }
  107. </style>
  108. <div class="container-fluid">
  109.     <div class="d-flex justify-content-between align-items-center mb-3">
  110.         <div>
  111.             <div class="qrcode mock" id="kerry-qr-{{tracking_id}}" style="width: auto;height: 70%;">
  112.                 {{#barcodes.QRCODE_7_7}}{{ tracking_id }} 1 1
  113.                 {{{ shipment_provider_route }}}{{/barcodes.QRCODE_10_10}}</div>
  114.  
  115.             <div class="pt-3">
  116.                 <h1 class="p-0 m-0">{{ tracking_id }}</h1>
  117.             </div>
  118.         </div>
  119.  
  120.         <div class="replace-logo">&nbsp;</div>
  121.     </div>
  122.  
  123.     <div class="row justify-content-between h-1">
  124.         <div class="border border-dark rounded p-3 col-8">
  125.             <div class="row">
  126.                 <div class="col-3">ชื่อผู้รับ</div>
  127.  
  128.                 <div class="col-9">
  129.                     <h4>{{{ shipping_address_customer_name }}}</h4>
  130.                 </div>
  131.             </div>
  132.  
  133.             <div class="row">
  134.                 <div class="col-3">ที่อยู่</div>
  135.  
  136.                 <div class="col-9">
  137.                     <h4>{{shipping_address_street}}<br />
  138.                         {{shipping_address_street4}} {{shipping_address_street3}} {{{shipping_address_zipcode}}}</h4>
  139.                 </div>
  140.             </div>
  141.  
  142.             <div class="row">
  143.                 <div class="col-3">เบอร์โทร</div>
  144.  
  145.                 <div class="col-9">
  146.                     <h4>{{ shipping_address_phone_number }}</h4>
  147.                 </div>
  148.             </div>
  149.  
  150.             <div class="row">
  151.                 <div class="col-3">Order Number</div>
  152.  
  153.                 <div class="col-9">
  154.                     <h4>{{ order_nr }}</h4>
  155.                 </div>
  156.             </div>
  157.         </div>
  158.  
  159.         <div class="p-1 col-4 text-center">
  160.             <h4>{{{ payment_method }}}</h4>
  161.  
  162.             <div class="barcode-100" style="padding-top: 5px;color: #ffffff;">
  163.                 {{#barcodes.C39_1_35}}{{ total }}{{/barcodes.C39_1_35}}</div>
  164.         </div>
  165.     </div>
  166.  
  167.     <div class="border-top my-3">&nbsp;</div>
  168.  
  169.     <div class="table-order-items mt-3"><span>{{{ order_items }}}</span></div>
  170.  
  171.     <div class="border-top my-3">&nbsp;</div>
  172.  
  173.     <div class="replace-thankyou">&nbsp;</div>
  174. </div>
  175.  
  176. <div class="barcode mock d-none" style="height: 101px;margin-top: 4px;" type="code128" width="2">
  177.     {{#barcodes.C128_1_104}}{{ tracking_id }}{{/barcodes.C128_1_104}}</div>
  178.  
  179. <div class="customer-name d-none">{{{ shipping_address_customer_name }}}</div>
  180.  
  181. <div class="customer-phone d-none">{{ shipping_address_phone_number }}</div>
  182.  
  183. <div class="customer-order d-none">{{ order_nr }}</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement