-เชื่อมโยง api search กับ frontend
-ปรับปรุงระบบ state -เพิ่ม ระบบ pipe dtmtodatetime
This commit is contained in:
@@ -125,22 +125,51 @@
|
||||
<span>ยอดเงิน</span>
|
||||
<span>บันทึก</span>
|
||||
</div>
|
||||
<div class="ledger-row" *ngFor="let idx of ledgerEntries; let i = index;">
|
||||
<div class="ledger-main">
|
||||
<span class="pill" [ngClass]="idx.type == 'i' ? 'pill--income' : 'pill--expense'">
|
||||
{{ idx.type == 'i' ? 'รับ' : 'จ่าย' }}
|
||||
</span>
|
||||
<div>
|
||||
<p class="ledger-title">{{ idx.title }}</p>
|
||||
<p class="ledger-date">{{ idx.date }}</p>
|
||||
<!-- @for (idx of myActData; track i; let i = $index) {
|
||||
<div class="ledger-row">
|
||||
<div class="ledger-main">
|
||||
<span class="pill" [ngClass]="idx.acttyp === 'i' ? 'pill--income' : 'pill--expense'">
|
||||
{{ idx.type === 'i' ? 'รับ' : 'จ่าย' }}
|
||||
</span>
|
||||
|
||||
<div>
|
||||
<p class="ledger-title">{{ idx.title }}</p>
|
||||
<p class="ledger-date">{{ idx.date }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span class="ledger-category">{{ idx.category }}</span>
|
||||
|
||||
<span class="ledger-amount" [ngClass]="idx.type === 'i' ? 'is-credit' : 'is-debit'">
|
||||
{{ idx.amount }}
|
||||
</span>
|
||||
|
||||
<span class="ledger-note">{{ idx.note }}</span>
|
||||
</div>
|
||||
<span class="ledger-category">{{ idx.category }}</span>
|
||||
<span class="ledger-amount" [ngClass]="idx.type == 'i' ? 'is-credit' : 'is-debit'">
|
||||
{{ idx.amount }}
|
||||
</span>
|
||||
<span class="ledger-note">{{ idx.note }}</span>
|
||||
</div>
|
||||
} -->
|
||||
@for (idx of myActData; track idx.actseq; let i = $index) {
|
||||
<div class="ledger-row">
|
||||
|
||||
<div class="ledger-main">
|
||||
<span class="pill" [ngClass]="idx.acttyp === 'i' ? 'pill--income' : 'pill--expense'">
|
||||
{{ idx.acttyp === 'i' ? 'รับ' : 'จ่าย' }}
|
||||
</span>
|
||||
|
||||
<div>
|
||||
<p class="ledger-title">{{ idx.acttypnam }}</p>
|
||||
<p class="ledger-date">{{ (idx.actacpdtm ?? '') | dtmtodatetime }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span class="ledger-category">{{ idx.actcatnam }}</span>
|
||||
|
||||
<span class="ledger-amount" [ngClass]="idx.acttyp === 'i' ? 'is-credit' : 'is-debit'">
|
||||
{{ idx.actqty }}
|
||||
</span>
|
||||
|
||||
<span class="ledger-note">{{ idx.actcmt }}</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user