dev-master
9999999-devA small library for some basics for invoices
MIT
The Requires
The Development Requires
by Philipp Scheit
1.0.0
1.0.0.0A small library for some basics for invoices
MIT
The Requires
The Development Requires
by Philipp Scheit
Wallogit.com
2017 © Pedro Peláez
A small library for some basics for invoices
A small library for some basics for invoices, (*2)
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());
A small library for some basics for invoices
MIT
A small library for some basics for invoices
MIT