getMerchantPrint method
dynamic
getMerchantPrint(
- dynamic dataRow,
- dynamic isUser
Implementation
getMerchantPrint(dataRow, isUser) {
isUser = isUser ?? true;
Map itemList = {};
itemList[1000] = {
gItem: {
gType: gBtn,
gLabel: 'Print receipt',
gFunction: [
{
gAction: 'printReceiptTransaction',
gData: [
{gIsselected: isUser}
]
}
],
}
};
itemList[2000] = {
gItem: {
gType: gSizedbox,
gValue: 10.0,
}
};
itemList[3000] = {
gItem: {
gType: gBtn,
gLabel: 'Cancel',
//gFunction: 'thirdPrintReceiptCancel',
gFunction: [
{gAction: 'finishme', gData: []},
{
gAction: gTableAddNewCommon,
gData: [
{
gTableID: gZzytransaction,
gType: gTable,
gLabel: gPay,
gWhere:
"parentid='${_globalParam[gGlobalCompanyid]}' and transtype='$gCustomer' and targettype='$gCustomer' and action='$gConsume' and targetid='targetfakeid'",
}
]
}
],
}
};
return itemList;
}