Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 function __construct(Money $amount, $description, TransactionType $invoicingMethod)
 {
     //$ttype === posting protocol/rule
     parent::__construct($amount, $description, $invoicingMethod);
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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();
 }