mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
Merge remote-tracking branch 'origin/feature/Detail'
This commit is contained in:
@@ -15,12 +15,14 @@ function BillUniversalSearchSelectComponent({
|
||||
// #ownProps
|
||||
resourceType,
|
||||
resourceId,
|
||||
onAction,
|
||||
|
||||
// #withDrawerActions
|
||||
openDrawer,
|
||||
}) {
|
||||
if (resourceType === RESOURCES_TYPES.INVOICE) {
|
||||
if (resourceType === RESOURCES_TYPES.BILL) {
|
||||
openDrawer('bill-drawer', { billId: resourceId });
|
||||
onAction && onAction();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -103,6 +105,7 @@ export function BillUniversalSearchItem(
|
||||
}
|
||||
|
||||
const billsToSearch = (bill) => ({
|
||||
id: bill.id,
|
||||
text: bill.vendor.display_name,
|
||||
reference: bill,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user