mirror of
https://github.com/frappe/books.git
synced 2025-01-23 07:08:36 +00:00
chore: set additional discount field to readonly
This commit is contained in:
parent
ebaf110ff2
commit
f50932c6a3
@ -103,7 +103,7 @@
|
|||||||
}"
|
}"
|
||||||
size="large"
|
size="large"
|
||||||
:value="additionalDiscounts"
|
:value="additionalDiscounts"
|
||||||
:read-only="false"
|
:read-only="true"
|
||||||
:text-right="true"
|
:text-right="true"
|
||||||
@change="(amount:Money)=> additionalDiscounts= amount"
|
@change="(amount:Money)=> additionalDiscounts= amount"
|
||||||
/>
|
/>
|
||||||
@ -342,11 +342,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
this.itemDiscounts = itemDiscounts;
|
this.itemDiscounts = itemDiscounts;
|
||||||
},
|
},
|
||||||
setAdditionalDiscounts(amount: Money) {
|
|
||||||
if (amount.isZero()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
async setTotalTaxedAmount() {
|
async setTotalTaxedAmount() {
|
||||||
if (!this.sinvDoc.items) {
|
if (!this.sinvDoc.items) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user