Skip to content
Code-Schnipsel Gruppen Projekte
Commit be651d0c erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: reset of address data at invoice temporary update

Übergeordneter bc4f7677
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -46,6 +46,7 @@ function ($invoiceId, $data) {
unset($data['articles']);
}
$Invoice->setAttribute('invoice_address', false); // needed because of address reset
$Invoice->setAttributes($data);
$Invoice->save();
},
......
......@@ -55,7 +55,7 @@
<span class="field-container-item" title="{{textStreet}}">
{{textStreet}}
</span>
<input type="text" class="field-container-field" name="street" disabled/>
<input type="text" class="field-container-field" name="street_no" disabled/>
</label>
</td>
</tr>
......
......@@ -40,10 +40,10 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice.Use
userId : false,
addressId: false,
company: false,
street : false,
zip : false,
city : false
company : false,
street_no: false,
zip : false,
city : false
},
initialize: function (options) {
......@@ -100,7 +100,7 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice.Use
this.$CustomerEdit.addEvent('click', this.editCustomer);
this.$Company = this.$Elm.getElement('[name="company"]');
this.$Street = this.$Elm.getElement('[name="street"]');
this.$Street = this.$Elm.getElement('[name="street_no"]');
this.$Zip = this.$Elm.getElement('[name="zip"]');
this.$City = this.$Elm.getElement('[name="city"]');
......@@ -285,10 +285,9 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice.Use
// set fields
self.setAttributes(address);
self.$AddressField.value = address.id;
self.setAttribute('addressId', address.id);
self.setAttribute('addressId', address.id);
self.refreshValues();
});
},
......@@ -342,6 +341,7 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice.Use
self.refreshValues();
self.setAttribute('addressId', addressId);
self.$fireChange();
resolve(address);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren