Changeset 1512910
- Timestamp:
- 10/11/2016 08:00:12 PM (9 years ago)
- Location:
- vat-moss/trunk/includes
- Files:
-
- 2 edited
-
integrations/class-edd.php (modified) (2 diffs)
-
meta-box.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vat-moss/trunk/includes/integrations/class-edd.php
r1105174 r1512910 147 147 // Look up the correct set of class rates for this item 148 148 $rate_type = VAT_GROUP_CLASS_REDUCED; 149 if (VAT_STANDARD_CLASS !== $class) 149 if ( VAT_STANDARD_CLASS == $class ) 150 { 151 if ( function_exists( '\\lyquidity\\vat_moss\\vat_rate_type_to_use' ) ) 152 $rate_type = vat_rate_type_to_use( $item[ 'id' ] ); 153 } 154 else 155 if ( function_exists('\lyquidity\edd_vat\get_vat_rates') ) 150 156 { 151 157 $class_rates = \lyquidity\edd_vat\get_vat_rates($class); … … 323 329 // Look up the correct set of class rates for this item 324 330 $rate_type = VAT_GROUP_CLASS_REDUCED; 325 if ( VAT_STANDARD_CLASS !== $class && function_exists('\lyquidity\edd_vat\get_vat_rates') ) 331 if ( VAT_STANDARD_CLASS == $class ) 332 { 333 if ( function_exists( '\\lyquidity\\vat_moss\\vat_rate_type_to_use' ) ) 334 $rate_type = vat_rate_type_to_use( $item[ 'id' ] ); 335 } 336 else 337 if ( function_exists('\lyquidity\edd_vat\get_vat_rates') ) 326 338 { 327 339 $class_rates = \lyquidity\edd_vat\get_vat_rates($class); -
vat-moss/trunk/includes/meta-box.php
r1105174 r1512910 23 23 { 24 24 $rate_type = get_post_meta( $postID, '_moss_rate_type', true ); 25 if ( empty($rate_type) || ($rate_type !== 'reduced' && $rate_type != 'standard') )26 $rate_type = 'reduced';25 if ( empty($rate_type) || ($rate_type !== VAT_GROUP_CLASS_REDUCED && $rate_type != VAT_GROUP_CLASS_STANDARD) ) 26 $rate_type = VAT_GROUP_CLASS_REDUCED; 27 27 return $rate_type; 28 28 }
Note: See TracChangeset
for help on using the changeset viewer.