• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenBuildings / purchases
96%
master: 99%

Build:
Build:
LAST BUILD BRANCH: 0.5.7
DEFAULT BRANCH: master
Repo Added 16 Sep 2013 03:11PM UTC
Files 44
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH 0.5.0
branch: 0.5.0
CHANGE BRANCH
x
Reset
  • 0.5.0
  • 0.3.10
  • 0.3.11
  • 0.3.12
  • 0.3.13
  • 0.3.14
  • 0.3.16
  • 0.3.18
  • 0.3.19
  • 0.3.20
  • 0.3.21
  • 0.3.22
  • 0.3.23
  • 0.3.24
  • 0.3.3
  • 0.3.4
  • 0.3.5
  • 0.3.6
  • 0.3.7
  • 0.3.8
  • 0.3.9
  • 0.4.0
  • 0.4.1
  • 0.4.2
  • 0.4.3
  • 0.4.4
  • 0.4.5
  • 0.5.1
  • 0.5.2
  • 0.5.3
  • 0.5.4
  • 0.5.5
  • 0.5.6
  • 0.5.7
  • 3dsecure
  • chained-payments
  • composer-suggest
  • master

pending completion
130

push

travis-ci

hkdobrev
Use STI instead of type for purchase_items

Using single-table inheritance(STI) allows us to define different models
for the different types of purchase items. Each model could have
a different way of computing the price.

Filtering by type is kept the same using `Model_Purchase_Item::type()`.

Breaking changes:
 - `purchase_items`.`type` column is removed from db schema
 - `purchase_items`.`model` column is added to db schema
 - `Model_Purchase_Item::compute_price()` uses `get_price()` to.
 - `Model_Purchase_Item_Product` is introduced. It extends `Model_Purchase_Item`
   and overrides `get_price()`.
 - New types of purchases items should be implemented using STI and creating new models.

602 of 625 relevant lines covered (96.32%)

1.22 hits per line

Relevant lines Covered
Build:
Build:
625 RELEVANT LINES 602 COVERED LINES
1.22 HITS PER LINE
Source Files on 0.5.0
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
130 0.5.0 Use STI instead of type for purchase_items Using single-table inheritance(STI) allows us to define different models for the different types of purchase items. Each model could have a different way of computing the price. Filtering by type is kep... push 14 Nov 2013 09:18PM UTC hkdobrev travis-ci pending completion  
See All Builds (138)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc