Closed shahonseven closed 3 years ago
Hi @shahonseven,
You could do it like this:
use IFRS\Transactions\JournalEntry;
use IFRS\models\LineItem;
$transaction = JournalEntry::create([
'account_id' => $AccumulatedArmotizationAccount->id,
'date' => Carbon::parse('2012-02-02'),
'narration' => "Depreciation of Mac",
])`
$lineItem = LineItem::create([
'vat_id' => $vat->id, // 0 rate
'account_id' => $depreciationExpenseAccount->id,
'narration' => "Depreciation Expense",
'quantity' => 1,
'amount' => 1000,
]);
$transaction ->addLineItem($lineItem );
$transaction ->post();
Hi @ekmungai
How do I create journal entry as below?
Thank you!