Lines 95-100
export default {
Link Here
|
95 |
vendor.address4 && (physical += vendor.address4 + "\n"); |
95 |
vendor.address4 && (physical += vendor.address4 + "\n"); |
96 |
this.vendor.physical = physical; |
96 |
this.vendor.physical = physical; |
97 |
|
97 |
|
|
|
98 |
this.vendor.payment_method = vendor.payment_method |
99 |
? vendor.payment_method.split("|") |
100 |
: [] |
98 |
if (!this.vendor.discount) this.vendor.discount = 0.0; |
101 |
if (!this.vendor.discount) this.vendor.discount = 0.0; |
99 |
const decimalPlaces = |
102 |
const decimalPlaces = |
100 |
this.vendor.discount.toString().split(".")[1]?.length || |
103 |
this.vendor.discount.toString().split(".")[1]?.length || |
Lines 155-160
export default {
Link Here
|
155 |
setWarning(errors.join("<br>")); |
158 |
setWarning(errors.join("<br>")); |
156 |
if (errors.length) return false; |
159 |
if (errors.length) return false; |
157 |
|
160 |
|
|
|
161 |
if (vendor.payment_method && vendor.payment_method.length > 0) { |
162 |
vendor.payment_method = vendor.payment_method.join("|") |
163 |
} else { |
164 |
vendor.payment_method = null |
165 |
} |
166 |
|
158 |
const client = APIClient.acquisition; |
167 |
const client = APIClient.acquisition; |
159 |
if (vendorId) { |
168 |
if (vendorId) { |
160 |
client.vendors.update(vendor, vendorId).then( |
169 |
client.vendors.update(vendor, vendorId).then( |
161 |
- |
|
|