IO-1029 IO-1027

This commit is contained in:
Patrick Fic
2021-05-06 17:53:09 -07:00
parent fb37f6a27e
commit c8a42b0a9f
3 changed files with 75 additions and 74 deletions

View File

@@ -51,15 +51,6 @@ export function BillsListTableComponent({
</Button>
)}
<BillDeleteButton bill={record} />
{record.isinhouse && (
<PrintWrapperComponent
templateObject={{
name: Templates.inhouse_invoice.key,
variables: { id: record.id },
}}
messageObject={{ subject: Templates.inhouse_invoice.subject }}
/>
)}
<Button
disabled={record.is_credit_memo}
onClick={() =>
@@ -87,6 +78,15 @@ export function BillsListTableComponent({
>
{t("bills.actions.return")}
</Button>
{record.isinhouse && (
<PrintWrapperComponent
templateObject={{
name: Templates.inhouse_invoice.key,
variables: { id: record.id },
}}
messageObject={{ subject: Templates.inhouse_invoice.subject }}
/>
)}
</Space>
);
const columns = [
@@ -167,7 +167,7 @@ export function BillsListTableComponent({
<Button onClick={() => refetch()}>
<SyncOutlined />
</Button>
{job ? (
{job && job.converted ? (
<>
<Button
onClick={() => {