function __construct($supplierId, $amount) { $this->supplierId = $supplierId; //$this->amount = $amount; - Money class //$this->description = "Balance brought forward"; $txtype = new SupplierInvoice($supplierId, 'Purchases Balance B/F invoice'); parent::__construct($amount, "Purchases balance brought forward", $txtype); }
function __construct(Money $amount, $description, TransactionType $invoicingMethod) { //$ttype === posting protocol/rule parent::__construct($amount, $description, $invoicingMethod); }
function __construct($id, $clientId, $projectId, $voucherNo, $amount, $ledgerId, $descr, $status) { $this->id = $id; $this->clientId = $clientId; $this->projectId = intval($projectId); $this->voucherNo = $voucherNo; $this->ledgerId = $ledgerId; $this->status = $status; $txtype = new SalesReceipt($ledgerId, $clientId); parent::__construct(new Money(floatval($amount), Currency::Get('KES')), $descr, $txtype); $this->update(); }
function __construct($entries, $amount, $description, $classifier) { //$this->status = $status; $this->txentries = $entries; $txtype = new DirectPosting($entries, $amount, $classifier); parent::__construct(new Money(floatval($amount), Currency::Get('KES')), $description, $txtype); }
function __construct($id, $partyId, $month, $amount, $type, $effect, $ledgerId, $descr, $txtype, $table) { $this->id = $id; $this->partyId = $partyId; $this->month = $month; $this->ledgerId = $ledgerId; $this->type = $type; $this->effect = $effect; parent::__construct(new Money(floatval($amount), Currency::Get('KES')), $descr, $txtype); $this->table = $table; $this->update(); }