Change the name of the sku accessor for shipsSeparately to isShippingSeparately, since it clashes with a property. Add tests. t/Asset/Sku.t passes.
This commit is contained in:
parent
caa1f330b8
commit
3a425f29bc
4 changed files with 13 additions and 20 deletions
|
|
@ -60,7 +60,7 @@ sub calculate {
|
|||
## Two items shipped separately = two bundles
|
||||
## 1 shipped separately plus 1 not = two bundles
|
||||
## two items shipped together = one bundle
|
||||
if ($sku->shipsSeparately) {
|
||||
if ($sku->isShippingSeparately) {
|
||||
$separatelyShipped += $quantity;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue