diff --git a/resources/views/finance/journal-entries.blade.php b/resources/views/finance/journal-entries.blade.php index 63d9cab4..bfe58249 100644 --- a/resources/views/finance/journal-entries.blade.php +++ b/resources/views/finance/journal-entries.blade.php @@ -1021,7 +1021,7 @@ className="px-2.5 py-1 text-xs font-medium bg-amber-100 text-amber-700 rounded-f time: ctx.useTime, description: ctx.merchantName || '-', deposit: 0, - withdraw: ctx.approvalAmount || 0, + withdraw: (ctx.supplyAmount || 0) + (ctx.taxAmount || 0), balance: null, hasJournal: ctx.hasJournal, journalId: ctx.journalId, @@ -1754,9 +1754,9 @@ className={`px-6 py-2 text-sm font-medium rounded-lg flex items-center gap-1 tra // ============================================================ const CardJournalEntryModal = ({ transaction, accountCodes, tradingPartners, onClose, onSaved, onDeleted, onPartnerAdded }) => { const ctx = transaction; - const amount = ctx.approvalAmount || 0; const supplyAmount = ctx.supplyAmount || 0; const taxAmount = ctx.taxAmount || 0; + const amount = supplyAmount + taxAmount; const isDeductible = ctx.deductionType !== 'non_deductible'; const [saving, setSaving] = useState(false);