Releases: AntonyThorpe/silvershop-unleashed
Releases · AntonyThorpe/silvershop-unleashed
PHP 8.1
Upgraded to Guzzle 7
Update PHPUnit to v9.5 Updated composer, tests & ci.yml
Updated folder name to comply with PSR-4 requirements
4.0.1 Update folder name to comply with PSR-4 requirements
Updated namespaces to comply with PSR-4 requirements
Updated docs, tests, changelog
BugFix: Rounding Errors
Rounding errors can be created by different ways of calculating Tax. SilverShop calculates Tax based on the Sub Total, whereas, Unleashed sums the Tax on each line item of the sales order and applicable modifiers. The code has been adjusted to follow the Unleashed approach and any rounding is added to the first sales order line and also to the TaxTotal to correct. Grand total remains the same.
Added a new function setBodyTaxCode to the Order class.
Refactor code
SilverShop 3/SilverStripe 4
Additional tests
New configuration settings for tax and shipping modifiers. Example below:
SilverShop\Model\Modifiers\FlatTax:
tax_code: OUTPUT2
AntonyThorpe\SilverShopUnleashed\Defaults:
shipping_modifier_class_name: 'SilverShop\Model\Modifiers\Shipping\Simple'
# Note: the `product_code` still needs to be set against the Shipping Modifier
Bugfix: Fixed rounding issue with the SubTotal
Updated Order.php
Corrected tests
Bugfix: avoid call to value function on a modifier
Bugfix: avoid call to value function on modifier $modifier->value() is expecting a parameter. A call generates an Uncaught ArgumentCountError: Too few arguments to function. Use LineTotal instead.
Added Deleted/MemberCancelled status to UnleashedUpdateOrderTask
Added deleted status to UnleashedUpdateOrderTask.php Updated tests
More complex Customer checks before creation in Unleashed
- More complex Customer checks before creation in Unleashed
- Simplified code and added tests
- Only include modified items with a value in a Sales Order
- Record when an Sales Order is posted to Unleashed to avoid potential double-ups