Changeset 1782751
- Timestamp:
- 12/07/2017 03:07:38 PM (8 years ago)
- Location:
- woo-masterway/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
woocommerce-masterway.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-masterway/trunk/readme.txt
r1668525 r1782751 3 3 Tags: woocommerce, invoice, invoicing, masterway, ecommerce, billing 4 4 Requires at least: 3.0 5 Tested up to: 4. 85 Tested up to: 4.9.1 6 6 Stable tag: trunk 7 7 License: GPLv2 or later -
woo-masterway/trunk/woocommerce-masterway.php
r1610777 r1782751 544 544 $ExemptionReasonCode=''; 545 545 546 $line_subtotal=$item['line_subtotal']; 547 $line_total=$item['line_total']; 546 $line_subtotal=(float)$item['line_subtotal']; 547 $line_total=(float)$item['line_total']; 548 549 // TRATAMENTO DO DO DESCONTO 550 if($line_subtotal != $line_total) 551 { 552 $Discount = ($line_total * 100) / $line_subtotal; 553 $Discount = 100 - $Discount; 554 $Discount = round($Discount, 2); 555 } 548 556 549 557
Note: See TracChangeset
for help on using the changeset viewer.