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C,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;oBAC9B,IAAI,IAAI,KAAK,GAAG;wBACd,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC1B,CAAC,CAAC,CAAC;YACL,CAAC,CAAC;YAEF;;;;;;;;;;;;cAYE;YAIJ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,MAAM,IAAI,OAAO,CAAE,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAC,GAAG,CAAC,CAAC,CAAC;YAEvD,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAC,uBAAsB;YAC1C,MAAM,CAAC,KAAK,EAAE,CAAC;YACf,yBAAyB;QACzB,CAAC;KAAA;IAKD,WAAW;QACX,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACrB,CAAC;IAID,YAAY;QACZ,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,EAAU,CAAC;QACf,IAAI,CAAC,GAAW,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;QAExC,IAAG,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAC;YACzB,EAAE,GAAG,WAAW,CAAC;SAChB;QAED,IAAG,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAC;YAC5B,EAAE,GAAG,YAAY,CAAC;SACjB;QAED,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAC,IAAI,CAAC,CAAC;IAE/B,CAAC;CAKA;;YA3FQ,qFAAiB;;AAOb,gBAAgB;IAL5B,wDAAS,CAAC;QACX,QAAQ,EAAE,kBAAkB;QAC5B,yEAAuC;;KAEtC,CAAC;GACW,gBAAgB,CAoF5B;AApF4B","sources":["./src/app/item_invoice/item_invoice-routing.module.ts","./src/app/item_invoice/item_invoice.module.ts","./src/app/item_invoice/item_invoice.page.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { Item_InvoicePage } from './item_invoice.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: Item_InvoicePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class Item_InvoicePageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { Item_InvoicePageRoutingModule } from './item_invoice-routing.module';\n\nimport { Item_InvoicePage } from './item_invoice.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n Item_InvoicePageRoutingModule\n ],\n declarations: [Item_InvoicePage]\n})\nexport class Item_InvoicePageModule {}\n","import { Component, OnInit } from '@angular/core';\nimport { AppserviceService } from '../_service/appservice/appservice.service';\n\n@Component({\nselector: 'app-item_invoice',\ntemplateUrl: './item_invoice.page.html',\nstyleUrls: ['./item_invoice.page.scss'],\n})\nexport class Item_InvoicePage implements OnInit {\nisPrint: boolean = false;\npTimer: number;\n\n\nconstructor(public appService: AppserviceService\n) { }\n\nngOnInit() {\n}\n\n\n\n\nasync printItemInv(){\nlet obj:any = this.appService.defsPost;\nlet objx: any[] = this.appService.searchlistINV[0];\n\n Object.keys(obj).forEach(col => {\n if (col === \"modified\") {\n obj[col] = \"No\";\n return;\n }\n\n Object.keys(objx).filter(xCol => {\n if (xCol === col)\n obj[col] = objx[xCol];\n });\n })\n\n /*\n if(obj.printed === ''){\n obj.freightitemStatus = 'Contracted';\n obj.printed = new Date().toISOString();\n console.log(obj)\n let p\n p = await this.appService.doServerPost(obj,\"e\");\n\n if(p){\n this.appService.updateItems('i',null,null,null);\n } \n }\n */\n\n \n\nthis.isPrint = true; \nawait new Promise (resolve => setTimeout(resolve,300));\n\ndocument.title = \"\";// \"LOAD NUMBER \" + i;\nwindow.print(); \n// disengage with button \n}\n\n\n\n\nviewItemInv(){\nthis.isPrint = false; \n}\n\n\n\ncloseItemInv(){\nthis.isPrint = false; \n\nlet pg: string;\nlet u: string = this.appService.prevUrl;\n\nif(u.includes(\"history\")){\npg = \"frhistory\";\n} \n\nif(u.includes(\"items_page\")){\npg = \"items_page\";\n} \n\nthis.appService.goTab(pg,null); \n\n}\n\n\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///"}