Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Nov 20, 2024
2 parents ae972b8 + 84d6d9d commit a72b486
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tine20/Sales/js/InvoiceEditDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@ Tine.Sales.InvoiceEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
}
},

onAfterRecordLoad: function () {
this.supr().onAfterRecordLoad.apply(this, arguments);

if (!this.record.id) {
this.getForm().findField('type').setValue('INVOICE');
}
},

/**
* loads the address to the plaintext field
*/
Expand Down
3 changes: 3 additions & 0 deletions tine20/Sales/js/Model/Document/AbstractMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ Tine.Sales.Model.Document_OfferMixin = AbstractMixin
Tine.Sales.Model.Document_OrderMixin = AbstractMixin
Tine.Sales.Model.Document_DeliveryMixin = AbstractMixin
Tine.Sales.Model.Document_InvoiceMixin = AbstractMixin
Tine.Sales.Model.Document_CustomerMixin = AbstractMixin
Tine.Sales.Model.InvoiceMixin = AbstractMixin
Tine.Sales.Model.CustomerMixin = AbstractMixin

export default AbstractMixin

0 comments on commit a72b486

Please sign in to comment.