showing empty fields in handling costs (not 0.00), to prevent that the 0.00 is set in the backend

This commit is contained in:
Jan 2025-12-14 17:26:59 +01:00
parent 0a128a7cb4
commit 640f466441

View file

@ -58,7 +58,7 @@ export default {
}, },
repackaging: { repackaging: {
get() { get() {
return this.destination?.repackaging_costs?.toFixed(2) ?? '0.00'; return this.destination?.repackaging_costs?.toFixed(2) ?? '';
}, },
set(value) { set(value) {
return this.destination && (this.destination.repackaging_costs = value); return this.destination && (this.destination.repackaging_costs = value);
@ -66,7 +66,7 @@ export default {
}, },
handling: { handling: {
get() { get() {
return this.destination?.handling_costs?.toFixed(2) ?? '0.00'; return this.destination?.handling_costs?.toFixed(2) ?? '';
}, },
set(value) { set(value) {
return this.destination && (this.destination.handling_costs = value); return this.destination && (this.destination.handling_costs = value);
@ -74,7 +74,7 @@ export default {
}, },
disposal: { disposal: {
get() { get() {
return this.destination?.disposal_costs?.toFixed(2) ?? '0.00'; return this.destination?.disposal_costs?.toFixed(2) ?? '';
}, },
set(value) { set(value) {
return this.destination && (this.destination.disposal_costs = value); return this.destination && (this.destination.disposal_costs = value);