Commit 1463879f authored by Maksym Tishchenko's avatar Maksym Tishchenko
Browse files

Print labels fix

parent 5eeda802
......@@ -422,7 +422,7 @@ export async function loadAllPages<T>(that, method: (...args) => Promise<Page<T>
export const YesNoToBoolean = (value: string): boolean => value === 'Y';
export function printLabels(labelData: Generator, options: { template: string, numberOfCopies?: number, isCollated?: boolean }): string {
export function printLabels(labelData: Generator | { [key: string]: any }[], options: { template: string, numberOfCopies?: number, isCollated?: boolean }): string {
console.log('Got template', options.template);
let itemsZpl = '';
......
......@@ -11,7 +11,7 @@ import { ApplicationService } from "@gringlobal-ce/client/service";
import { closeDialog } from "@gringlobal-ce/client/action/dialog";
interface IPrintLabelProps extends React.ClassAttributes<any>, WithTranslation, WithWidth {
labelsGenerator: (...args: any[]) => Generator;
labelsGenerator: (...args: any[]) => Generator | { [key: string]: any }[];
showSnackbar: (message: string) => void;
templateName: string;
buttonTitle?: string;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment