Add project_id to invoices
This commit is contained in:
parent
010c2cefd3
commit
c70cbcc340
|
|
@ -364,7 +364,7 @@ void handleTaskAction(
|
||||||
for (var each in tasks) {
|
for (var each in tasks) {
|
||||||
final task = each as TaskEntity;
|
final task = each as TaskEntity;
|
||||||
if (task.projectId.isNotEmpty) {
|
if (task.projectId.isNotEmpty) {
|
||||||
//projectId = task.projectId;
|
projectId = task.projectId;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -372,9 +372,10 @@ void handleTaskAction(
|
||||||
if (items.isNotEmpty) {
|
if (items.isNotEmpty) {
|
||||||
createEntity(
|
createEntity(
|
||||||
context: context,
|
context: context,
|
||||||
entity: InvoiceEntity(state: state, client: client).rebuild((b) => b
|
entity: InvoiceEntity(state: state, client: client)
|
||||||
..lineItems.addAll(items)
|
.rebuild((b) => b..lineItems.addAll(items)
|
||||||
..projectId = projectId));
|
//..projectId = projectId
|
||||||
|
));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EntityAction.clone:
|
case EntityAction.clone:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue