2017 © Pedro Peláez
 

library accounting

A small library for some basics for invoices

image

webforge/accounting

A small library for some basics for invoices

  • Monday, November 18, 2013
  • by pscheit
  • Repository
  • 1 Watchers
  • 3 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 2 Versions
  • 71 % Grown

The README.md

Accounting

Build Status
Coverage Status
Latest Stable Version, (*1)

A small library for some basics for invoices, (*2)

Prices

The Webforge\Accounting\Price class will help you with some calculation basics:, (*3)

$price = new Price(4284, Price::GROSS, 0.19);

$this->assertEquals(4284, $price->getGross());
$this->assertEquals(3600, $price->getNet());
$this->assertEquals(0.19, $price->getTax());
$this->assertEquals(684, $price->getTaxValue()); // = 4284-3600

// or construct it the other way round:
$price = new Price(3600, Price::NET, 0.19);
$this->assertEquals(4284, $price->getGross());
$this->assertEquals(3600, $price->getNet());
$this->assertEquals(0.19, $price->getTax());
$this->assertEquals(684, $price->getTaxValue()); // = 4284-3600

You can provide prices without taxes:, (*4)

$price = new Price(4284, Price::GROSS, Price::NO_TAXES);

$this->assertEquals(4284, $price->getGross());
$this->assertEquals(4284, $price->getNet());
$this->assertEquals(0, $price->getTax());
$this->assertEquals(0, $price->getTaxValue());

The Versions

18/11 2013

dev-master

9999999-dev

A small library for some basics for invoices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Philipp Scheit

18/11 2013

1.0.0

1.0.0.0

A small library for some basics for invoices

  Sources   Download

MIT

The Requires

 

The Development Requires

by Philipp Scheit