paid and balance added #2znd43c
This commit is contained in:
@ -32,7 +32,7 @@
|
|||||||
@click="onItemSelected(item)"
|
@click="onItemSelected(item)"
|
||||||
>
|
>
|
||||||
<div class="w-full flex items-center justify-between">
|
<div class="w-full flex items-center justify-between">
|
||||||
<span>{{ item.name }}</span>
|
<span class="w-9/12">{{ item.name }}</span>
|
||||||
|
|
||||||
<money
|
<money
|
||||||
:name="'item-id-' + item.id"
|
:name="'item-id-' + item.id"
|
||||||
@ -40,7 +40,25 @@
|
|||||||
v-bind="money"
|
v-bind="money"
|
||||||
masked
|
masked
|
||||||
disabled
|
disabled
|
||||||
class="text-right disabled-money text-gray"
|
class="w-1/12 text-right disabled-money text-gray"
|
||||||
|
></money>
|
||||||
|
-
|
||||||
|
<money
|
||||||
|
:name="'item-id-' + item.id"
|
||||||
|
:value="item.paid"
|
||||||
|
v-bind="money"
|
||||||
|
masked
|
||||||
|
disabled
|
||||||
|
class="w-1/12 text-right disabled-money text-gray"
|
||||||
|
></money>
|
||||||
|
=
|
||||||
|
<money
|
||||||
|
:name="'item-id-' + item.id"
|
||||||
|
:value="item.open"
|
||||||
|
v-bind="money"
|
||||||
|
masked
|
||||||
|
disabled
|
||||||
|
class="w-1/12 text-right disabled-money text-gray"
|
||||||
></money>
|
></money>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -180,6 +198,8 @@ export default {
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
name: item.document_number + ' | ' + item.contact_name + (item.notes ? ' | ' + item.notes : ''),
|
name: item.document_number + ' | ' + item.contact_name + (item.notes ? ' | ' + item.notes : ''),
|
||||||
amount: item.amount,
|
amount: item.amount,
|
||||||
|
paid: item.paid,
|
||||||
|
open: item.amount - item.paid,
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user