2
0
mirror of https://github.com/frappe/books.git synced 2025-01-26 08:38:27 +00:00

Pass doc in ReportFilters

This commit is contained in:
Faris Ansari 2018-10-22 23:33:22 +05:30
parent 631cb61c31
commit bd4c581462

View File

@ -5,6 +5,7 @@
:key="docfield.fieldname"
:docfield="docfield"
:value="$data.filterValues[docfield.fieldname]"
:doc="$data.filterValues"
@change="updateValue(docfield.fieldname, $event)"/>
</div>
</template>
@ -30,13 +31,6 @@ export default {
this.$emit('change', this.filterValues);
}
},
provide() {
return {
dynamicLinkTarget: reference => {
return this.filterValues[reference];
}
};
},
methods: {
updateValue(fieldname, value) {
this.filterValues[fieldname] = value;