mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
Fix price select did not fill in price
This commit is contained in:
parent
2c8656ebdc
commit
e419287cfb
@ -41,7 +41,7 @@
|
||||
<row class="row">
|
||||
<et2-description value="Price"></et2-description>
|
||||
<projectmanager-pricelist id="pl_id"
|
||||
onchange="window.app.infolog.et2.getWidgetById('info_price').set_value(this.options[this.selectedIndex].text.lastIndexOf('(') < 0 ? '' : this.options[this.selectedIndex].text.slice(this.options[this.selectedIndex].text.lastIndexOf('(')+1,-1));"
|
||||
onchange="let option = this.select_options.find(e=>e.value == this.value) || {label:''};window.app.infolog.et2.getWidgetById('info_price').set_value(option.label.lastIndexOf('(') < 0 ? '' : option.label.slice(option.label.lastIndexOf('(')+1,-1));"
|
||||
emptyLabel="None" class="et2_fullWidth"/>
|
||||
<et2-number id="info_price"></et2-number>
|
||||
<et2-description></et2-description>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<et2-description value="Unitprice" for="ts_unitprice"></et2-description>
|
||||
<et2-hbox disabled="@pm_integration=none" >
|
||||
<projectmanager-pricelist id="pl_id" class="et2_fullWidth"
|
||||
onchange="window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(this.options[this.selectedIndex].text.lastIndexOf('(') < 0 ? '' : this.options[this.selectedIndex].text.slice(this.options[this.selectedIndex].text.lastIndexOf('(')+1,-1));"
|
||||
onchange="let option = this.select_options.find(e=>e.value == this.value) || {label:''};window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(option.label.lastIndexOf('(') < 0 ? '' : option.label.slice(option.label.lastIndexOf('(')+1,-1));"
|
||||
emptyLabel="None"/>
|
||||
</et2-hbox>
|
||||
<et2-description></et2-description>
|
||||
|
Loading…
Reference in New Issue
Block a user