Bugzilla – Attachment 182038 Details for
Bug 39858
Cannot save vendor if it has invoices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39858: Fix saving vendors with invoices
Bug-39858-Fix-saving-vendors-with-invoices.patch (text/plain), 1.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-05-07 18:19:03 UTC
(
hide
)
Description:
Bug 39858: Fix saving vendors with invoices
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-05-07 18:19:03 UTC
Size:
1.49 KB
patch
obsolete
>From a2cf9d70b32d1421f504bcec8815286d2839d0f2 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 7 May 2025 15:14:51 -0300 >Subject: [PATCH] Bug 39858: Fix saving vendors with invoices > >This patch makes the form remove the `invoices_count` attribute from the >object before sending it to the API. > >To test: >1. Have a vendor with some invoice >2. Edit the vendor to add a contact (for example) >3. Click 'Submit' >=> FAIL: Error, cannot be saved >4. Apply this patch >5. Rebuild the Vue assets: > $ ktd --shell > k$ yarn js:build >6. Restart: > k$ restart_all >7. Reload the browser page and edit the vendor >8. Click 'Submit' >=> SUCCESS: It saved >9. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/js/vue/components/Vendors/VendorFormAdd.vue | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue >index 3c042ca82d6..e5e7a384741 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue >@@ -131,6 +131,7 @@ export default { > delete vendor.baskets_count; > delete vendor.subscriptions; > delete vendor.contracts; >+ delete vendor.invoices_count; > > if (!this.discountValid) > errors.push(this.$__("Invalid discount value")); >-- >2.49.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39858
:
182038
|
182039
|
182073