dealpos 26.29.2 → 26.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-QOEUUHI6.js → chunk-2D4KNPFA.js} +1 -1
- package/browser/{chunk-E5SZ26J6.js → chunk-2ML2LD5D.js} +1 -1
- package/browser/{chunk-Y4KEFYRC.js → chunk-2S5WMITP.js} +1 -1
- package/browser/{chunk-E5HCPAGT.js → chunk-33SPBI23.js} +1 -1
- package/browser/{chunk-CM2W4OGX.js → chunk-36YHZDMS.js} +1 -1
- package/browser/{chunk-6BIYZUYK.js → chunk-3F4PALNB.js} +1 -1
- package/browser/{chunk-NPZA63IX.js → chunk-3S7SVNYX.js} +1 -1
- package/browser/{chunk-V2KRNWEI.js → chunk-4DMWF6JH.js} +1 -1
- package/browser/{chunk-JBLCOCWI.js → chunk-4JRPBJ7C.js} +1 -1
- package/browser/{chunk-KLAUS4QD.js → chunk-4UOMZU2Z.js} +1 -1
- package/browser/{chunk-XBKQ3RG2.js → chunk-4W3Q6UE5.js} +1 -1
- package/browser/{chunk-DBROGHP5.js → chunk-4YDAQNYG.js} +1 -1
- package/browser/chunk-56EKES6R.js +1 -0
- package/browser/{chunk-PAM7CZIW.js → chunk-5B34DEG2.js} +1 -1
- package/browser/{chunk-HDG6JFA7.js → chunk-5HIJE6QG.js} +1 -1
- package/browser/{chunk-E2C2JWUR.js → chunk-5N75OUUH.js} +1 -1
- package/browser/{chunk-UJTFRKD6.js → chunk-5P2CNCNT.js} +1 -1
- package/browser/{chunk-T66PW3DE.js → chunk-623C5AZY.js} +1 -1
- package/browser/{chunk-N6XTKEYC.js → chunk-74NFKV7F.js} +1 -1
- package/browser/{chunk-CNLLDX33.js → chunk-7J3BWQN3.js} +1 -1
- package/browser/{chunk-WRVFMNFB.js → chunk-7JPFN7P3.js} +1 -1
- package/browser/{chunk-MGG6P7ZA.js → chunk-7UMK7XGR.js} +1 -1
- package/browser/{chunk-4EEMSRFZ.js → chunk-AP6EF7FN.js} +1 -1
- package/browser/{chunk-RJXJJN3P.js → chunk-AVCMMMTX.js} +1 -1
- package/browser/{chunk-DXTSUCRV.js → chunk-B6QQZNBV.js} +1 -1
- package/browser/{chunk-Z4XMB4JK.js → chunk-BKEMCAST.js} +1 -1
- package/browser/{chunk-Q3HNCCYY.js → chunk-BSXVCXHA.js} +1 -1
- package/browser/{chunk-JDTA6VVS.js → chunk-BVUB4ZTV.js} +1 -1
- package/browser/{chunk-ULFJRUXF.js → chunk-C3QPSW3X.js} +1 -1
- package/browser/{chunk-P4QH3MVJ.js → chunk-CBE62RY3.js} +1 -1
- package/browser/{chunk-AKURDWYM.js → chunk-CEQJAUV2.js} +1 -1
- package/browser/{chunk-AEKYGTST.js → chunk-CMPCXIUV.js} +1 -1
- package/browser/{chunk-BLR56WTI.js → chunk-CPGNNRUA.js} +1 -1
- package/browser/{chunk-C6OS7OH3.js → chunk-CTXWV7HV.js} +2 -2
- package/browser/{chunk-PFYWJTG4.js → chunk-CWRIEUUX.js} +1 -1
- package/browser/chunk-D3DH342V.js +1 -0
- package/browser/{chunk-MSU6IA4E.js → chunk-DACNO5DI.js} +1 -1
- package/browser/{chunk-YPRM4YPL.js → chunk-DMMZZ2AO.js} +1 -1
- package/browser/{chunk-SY5NNN4M.js → chunk-DUAKLYOO.js} +1 -1
- package/browser/{chunk-V6I4U3FF.js → chunk-DX63KS23.js} +1 -1
- package/browser/{chunk-LT46RQOD.js → chunk-EKUGA4BH.js} +1 -1
- package/browser/{chunk-SLRSIKY4.js → chunk-EO4BD6VJ.js} +1 -1
- package/browser/{chunk-W6JC5Y5Z.js → chunk-EQXTAVCD.js} +1 -1
- package/browser/{chunk-POPTNOXV.js → chunk-EWQB2HO5.js} +1 -1
- package/browser/{chunk-ZPXUDL2F.js → chunk-EY57M7DT.js} +1 -1
- package/browser/{chunk-A3TCEOIL.js → chunk-F2RQ7UUR.js} +1 -1
- package/browser/{chunk-KZ7JAEYC.js → chunk-F4VP5RB5.js} +1 -1
- package/browser/{chunk-DKQDZVCI.js → chunk-FGG3C2QY.js} +1 -1
- package/browser/chunk-FX25GJX6.js +1 -0
- package/browser/{chunk-MCHMU65O.js → chunk-FZHW5BCP.js} +1 -1
- package/browser/{chunk-2KJSGRKY.js → chunk-GG2TMLCR.js} +1 -1
- package/browser/{chunk-NWREVTKW.js → chunk-GX7W7J5R.js} +1 -1
- package/browser/{chunk-KVCXTXZ7.js → chunk-GZQLKEFW.js} +1 -1
- package/browser/{chunk-A2D4ZWEL.js → chunk-HJ6W57RJ.js} +1 -1
- package/browser/{chunk-5MKVQFXP.js → chunk-HQEG5OYA.js} +1 -1
- package/browser/{chunk-ADHRI2ZG.js → chunk-HS4EDPI4.js} +1 -1
- package/browser/{chunk-O2LNYZN3.js → chunk-HXTT55ZA.js} +1 -1
- package/browser/{chunk-TDFVWBPV.js → chunk-HXVVFVUT.js} +1 -1
- package/browser/{chunk-3RNFVRR4.js → chunk-HZLGFQMX.js} +1 -1
- package/browser/{chunk-FOKGV3MG.js → chunk-I7J7WJJG.js} +1 -1
- package/browser/chunk-IEQFYEWN.js +1 -0
- package/browser/{chunk-DZ3JSWN4.js → chunk-IFALL6MC.js} +1 -1
- package/browser/{chunk-MLSXLYHC.js → chunk-IFBKNUMR.js} +1 -1
- package/browser/{chunk-FY3XQZM2.js → chunk-IIMJUYCK.js} +1 -1
- package/browser/chunk-IJFQCDQY.js +1 -0
- package/browser/{chunk-J7K3ZGHO.js → chunk-ITTOCTTH.js} +1 -1
- package/browser/{chunk-QNZPOT7X.js → chunk-IWQ76U3D.js} +1 -1
- package/browser/{chunk-ZTJJC7LM.js → chunk-JJQW7646.js} +1 -1
- package/browser/{chunk-PH237GPH.js → chunk-JSMYLOZE.js} +1 -1
- package/browser/{chunk-DKXEKVNL.js → chunk-KICX5JEP.js} +1 -1
- package/browser/{chunk-LYSCU4VY.js → chunk-KVH7LMLF.js} +2 -2
- package/browser/{chunk-SRBRN6I6.js → chunk-LDR4WS4A.js} +1 -1
- package/browser/{chunk-HO7UAM4U.js → chunk-LUAMGHMB.js} +1 -1
- package/browser/{chunk-S4263DWI.js → chunk-M2SKUQDO.js} +1 -1
- package/browser/{chunk-N377QT4B.js → chunk-M7UZL2ZH.js} +1 -1
- package/browser/{chunk-CDMOG6NO.js → chunk-MULRDBS5.js} +1 -1
- package/browser/{chunk-KM4ASOAJ.js → chunk-N4YS2K3B.js} +1 -1
- package/browser/{chunk-7DDSY4T5.js → chunk-N5HLOFGE.js} +1 -1
- package/browser/{chunk-YMZVULF2.js → chunk-NDPVFJGL.js} +1 -1
- package/browser/{chunk-MSHOFBI6.js → chunk-NUKRBZGY.js} +1 -1
- package/browser/{chunk-H5DKJDHK.js → chunk-O6OQSPGS.js} +1 -1
- package/browser/{chunk-FI4ADJ7Y.js → chunk-Q3TRJ4YK.js} +1 -1
- package/browser/{chunk-OEAMQ7FV.js → chunk-QID3ITOS.js} +2 -2
- package/browser/{chunk-7VP7BETO.js → chunk-QS3GLX36.js} +2 -2
- package/browser/{chunk-4TSFDXIQ.js → chunk-RLIZXSU3.js} +1 -1
- package/browser/{chunk-X5ETGJED.js → chunk-RQVGDPOS.js} +1 -1
- package/browser/{chunk-RB6PG44M.js → chunk-S36BA7SB.js} +1 -1
- package/browser/{chunk-EYNEGQWW.js → chunk-S73KU2OD.js} +1 -1
- package/browser/{chunk-TSY3QHHI.js → chunk-S77DMQLT.js} +1 -1
- package/browser/{chunk-XQBUTQIT.js → chunk-SPZWT6JL.js} +1 -1
- package/browser/{chunk-XDRISSKA.js → chunk-SXTG2QHZ.js} +1 -1
- package/browser/{chunk-KT23O5RI.js → chunk-T5ZUUOJ3.js} +1 -1
- package/browser/{chunk-MH5R4QUS.js → chunk-TA3W7RHU.js} +1 -1
- package/browser/{chunk-AILQAY4R.js → chunk-THFK2Q7O.js} +1 -1
- package/browser/{chunk-DKU772CO.js → chunk-TX45AMND.js} +6 -6
- package/browser/{chunk-QKU2DV3E.js → chunk-UGY4CEQW.js} +1 -1
- package/browser/{chunk-3LUCZIFK.js → chunk-UPGHIMWK.js} +1 -1
- package/browser/{chunk-HTDYDLGC.js → chunk-US5GI7RL.js} +2 -2
- package/browser/{chunk-U2BWKCOY.js → chunk-UWDS4B3U.js} +1 -1
- package/browser/{chunk-IPKD2YEV.js → chunk-V255MRYP.js} +1 -1
- package/browser/{chunk-WNL7MHHR.js → chunk-VEE75PBS.js} +1 -1
- package/browser/{chunk-2EVYKVUT.js → chunk-VHWMXEF7.js} +1 -1
- package/browser/{chunk-PNU45TI5.js → chunk-VPLADMWF.js} +1 -1
- package/browser/{chunk-DVO26XPI.js → chunk-VRXDQDHP.js} +1 -1
- package/browser/{chunk-R4M6V4LG.js → chunk-WRPSTUU4.js} +1 -1
- package/browser/{chunk-5SUCEZKZ.js → chunk-WX5B2564.js} +2 -2
- package/browser/{chunk-23G4CQ4S.js → chunk-WYMI7IXZ.js} +1 -1
- package/browser/{chunk-F4BGBE5F.js → chunk-XGRXJYED.js} +1 -1
- package/browser/{chunk-LJ3IXMQO.js → chunk-XLHPCDSC.js} +1 -1
- package/browser/{chunk-REHBAOAZ.js → chunk-XPPR4673.js} +1 -1
- package/browser/{chunk-P4SUAW7E.js → chunk-Y2UA4O46.js} +1 -1
- package/browser/{chunk-J4CDE4OB.js → chunk-Y52GFEZD.js} +1 -1
- package/browser/{chunk-K6I3CJMZ.js → chunk-Y6DYLLYI.js} +1 -1
- package/browser/{chunk-PVTBU2DG.js → chunk-YBD3KGUH.js} +1 -1
- package/browser/{chunk-XWIVP66I.js → chunk-Z4ASHZX7.js} +1 -1
- package/browser/{chunk-ZXAFHS2K.js → chunk-Z53RWQNU.js} +2 -2
- package/browser/{chunk-IZNNDLYJ.js → chunk-Z6Q3RU25.js} +1 -1
- package/browser/{chunk-QFOKSRM2.js → chunk-Z75J7F5A.js} +1 -1
- package/browser/{chunk-QVPRUUOY.js → chunk-ZDP3L3F4.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-MTL5GQGW.js → main-N2VYM66Z.js} +1 -1
- package/package.json +1 -1
- package/browser/chunk-35MMVKDX.js +0 -1
- package/browser/chunk-FD5DZ33A.js +0 -1
- package/browser/chunk-LRZNBFRR.js +0 -1
- package/browser/chunk-NW62DOPB.js +0 -1
- package/browser/chunk-VNY4S6S5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-ZDP3L3F4.js";import"./chunk-NVGEU7SZ.js";import"./chunk-LDU2L7YC.js";import"./chunk-VQQIQFUB.js";import"./chunk-HKSUQNKJ.js";import"./chunk-DLBX5RSU.js";import"./chunk-YHKX3K56.js";import"./chunk-O3LZKJY2.js";import"./chunk-WLNLF7ZT.js";import"./chunk-MPGXQK5L.js";import"./chunk-IDHUYY2U.js";import"./chunk-FZHW5BCP.js";import"./chunk-TA3W7RHU.js";import"./chunk-Q3TRJ4YK.js";import"./chunk-5OLVUC6J.js";import"./chunk-WYKVRUIW.js";import"./chunk-LVIGLDQ4.js";import"./chunk-BC7YQBUB.js";import"./chunk-EKUGA4BH.js";import"./chunk-DX63KS23.js";import"./chunk-5E52ZWKI.js";import"./chunk-JFJGBJM3.js";import"./chunk-WYMI7IXZ.js";import"./chunk-Q6MS4QZ6.js";import"./chunk-GMF3SGSZ.js";import"./chunk-5NWJYNJO.js";import"./chunk-36TOKQZQ.js";import"./chunk-XS4UTUMZ.js";import"./chunk-D3PKFTVO.js";import"./chunk-V25UXFNL.js";import"./chunk-YNQPX5G6.js";import"./chunk-VAJAIBT3.js";import"./chunk-RBBEZN3D.js";import"./chunk-M2SKUQDO.js";import"./chunk-R2YNXAPB.js";import"./chunk-MMKYHF6F.js";import"./chunk-LJWHBKHI.js";import"./chunk-DUAKLYOO.js";import"./chunk-3UB7PEG5.js";import"./chunk-DVI52XSU.js";import"./chunk-6HNYSYBG.js";import"./chunk-WIUSOID5.js";import"./chunk-K7ICHNI3.js";import"./chunk-POUQHZWU.js";import"./chunk-N4YS2K3B.js";import"./chunk-DMMZZ2AO.js";import"./chunk-MNXZMQRB.js";import"./chunk-H3D4WR27.js";import"./chunk-PTRS3UA6.js";import"./chunk-EY57M7DT.js";import"./chunk-D3E5UKKJ.js";import"./chunk-M3O2GJ3M.js";import"./chunk-KMHZKFQS.js";export{a as WebhookJobLogsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-AKURDWYM.js";import{a as j}from"./chunk-XUQBRL5R.js";import{N as G,g as H}from"./chunk-VAJAIBT3.js";import{Ab as m,Bb as a,Cb as c,Cc as P,Db as s,Dc as u,Ec as v,Ka as x,Lc as p,Na as w,Oa as b,Qc as M,Ra as o,Rb as g,Vb as z,Wb as A,Xb as L,ab as N,ec as d,fc as C,fd as B,gc as f,nd as R,pb as T,pd as Q,sd as F,tb as l,vb as r,vc as h,wb as I,yb as E,zb as D}from"./chunk-M3O2GJ3M.js";import{a as V,b as S}from"./chunk-KMHZKFQS.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,On,2,0,"th",30),l(7,bn,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",b`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,O;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(O=e.css())!=null&&O.Size8cm?u(4,11,(O=e.css())==null?null:O.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
|
|
1
|
+
import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-CEQJAUV2.js";import{a as j}from"./chunk-XUQBRL5R.js";import{N as G,g as H}from"./chunk-VAJAIBT3.js";import{Ab as m,Bb as a,Cb as c,Cc as P,Db as s,Dc as u,Ec as v,Ka as x,Lc as p,Na as w,Oa as b,Qc as M,Ra as o,Rb as g,Vb as z,Wb as A,Xb as L,ab as N,ec as d,fc as C,fd as B,gc as f,nd as R,pb as T,pd as Q,sd as F,tb as l,vb as r,vc as h,wb as I,yb as E,zb as D}from"./chunk-M3O2GJ3M.js";import{a as V,b as S}from"./chunk-KMHZKFQS.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,On,2,0,"th",30),l(7,bn,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",b`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,O;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(O=e.css())!=null&&O.Size8cm?u(4,11,(O=e.css())==null?null:O.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se}from"./chunk-UYAE2KWZ.js";import{k as re,o as pe,q as le,r as me}from"./chunk-5NWJYNJO.js";import{a as oe}from"./chunk-
|
|
1
|
+
import{a as se}from"./chunk-UYAE2KWZ.js";import{k as re,o as pe,q as le,r as me}from"./chunk-5NWJYNJO.js";import{a as oe}from"./chunk-DUAKLYOO.js";import{a as ae}from"./chunk-3UB7PEG5.js";import{F as te,a as J,c as X,h as Y,l as Z,s as ee}from"./chunk-POUQHZWU.js";import{b as ne}from"./chunk-H3D4WR27.js";import{a as K}from"./chunk-PTRS3UA6.js";import{n as q,q as ie}from"./chunk-D3E5UKKJ.js";import{$b as H,Aa as w,Ab as c,B as A,Bb as r,C as s,Cb as p,Cc as b,Db as d,Dc as V,K as x,Ma as F,Pb as j,Qc as m,Ra as a,Rb as _,Rc as z,Ya as h,Z as D,Zb as k,_ as I,_b as U,ab as N,bc as O,ca as l,d as M,ea as P,ec as u,fc as g,l as E,la as f,ld as B,mc as L,pd as Q,r as S,sd as G,tb as C,tc as W,vb as y,xb as T,yb as R,zb as $}from"./chunk-M3O2GJ3M.js";var de=["searchFilter"];function ue(o,e){o&1&&d(0,"i",3)}function ge(o,e){if(o&1&&d(0,"img",9),o&2){let t=_().$implicit;c("src",t.ImgUrl,F)}}function ve(o,e){o&1&&(r(0,"div",10),d(1,"i",13),p())}function fe(o,e){if(o&1&&(r(0,"mat-option",6)(1,"div",7)(2,"div",8)(3,"div"),C(4,ge,1,1,"img",9)(5,ve,2,0,"div",10),p(),r(6,"div",11)(7,"div"),u(8),p(),r(9,"small",12),u(10),p()()(),r(11,"span"),u(12),b(13,"number"),p()()()),o&2){let t=e.$implicit,n=_();c("value",t),a(4),y(t.ImgUrl?4:5),a(4),g(t.Value),a(2),g(t.Code),a(2),g(V(13,5,t[n.amountProperty()]))}}var ce=class o{constructor(e,t){this.http=e;w(()=>{let n=this.searchFilter().nativeElement;t.searchFilterNativeEl=n})}searchFilter=z("searchFilter");toastr=f(q);role=f(ne);isOnModalVariant=m(!1);autocompleteEndpoint=m(oe.GetVariantSuggestions);outletID=m("");inputID=m("");amountProperty=m("UnitPrice");filteredVariants$;variant=new Z("");_onEnter=new M;onEnter$=this._onEnter.asObservable();disabled=!1;onChange=e=>{};onTouched=()=>{};ngOnInit(){this.filteredVariants$=this.variant.valueChanges.pipe(D(this.variant.value),s(i=>typeof i=="string"&&i.length>=3||i===""),x(300),I(i=>i?this.searchVariants(i):E([])));let e=this.variant.valueChanges.pipe(s(i=>typeof i!="string"&&!i.OnSet),l(i=>this.onChange({type:"ID",str:i.Key,value:i.Value}))),t=this.onEnter$.pipe(P(this.variant.valueChanges),S(([i,v])=>v),s(i=>typeof i=="string"),l(i=>this.onChange({type:"Code",str:i})));A(e,t).pipe(s(()=>!this.isOnModalVariant()),l(()=>this.variant.setValue("")),l(()=>this.onChange(null))).subscribe()}writeValue(e){if(typeof e!="string"&&K.IsNotEmpty(e)){let t={Key:e.str,Value:e.value,OnSet:!0};this.variant.setValue(t)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}onEnter(){this._onEnter.next()}displayFn(e){return e&&e.Value?e.Value:""}searchVariants(e){return this.http.get(this.autocompleteEndpoint(),[{key:"Prefix",value:e},{key:"Count",value:100},{key:"EntityID",value:this.outletID()}]).pipe(l(t=>{t?.length||this.toastr.warning(`Product with name "${e}" is not found`,ae.Warning)}))}static \u0275fac=function(t){return new(t||o)(h(ie),h(se))};static \u0275cmp=N({type:o,selectors:[["POS-variant-autocomplete"]],viewQuery:function(t,n){t&1&&k(n.searchFilter,de,5),t&2&&U()},inputs:{isOnModalVariant:[1,"isOnModalVariant"],autocompleteEndpoint:[1,"autocompleteEndpoint"],outletID:[1,"outletID"],inputID:[1,"inputID"],amountProperty:[1,"amountProperty"]},features:[W([{provide:J,multi:!0,useExisting:o}])],decls:10,vars:13,consts:[["searchFilter",""],["auto","matAutocomplete"],[1,"position-relative"],[1,"fa","fa-barcode","position-absolute"],["type","text","placeholder","Search product by name/code",1,"example-input",3,"keydown.enter","formControl","matAutocomplete","id"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-start"],["width","30","height","30",1,"me-2",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","me-2"],[1,"ms-3"],[1,"opacity-75"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(t,n){if(t&1&&(r(0,"div",2),C(1,ue,1,0,"i",3),r(2,"input",4,0),j("keydown.enter",function(){return n.onEnter()}),p(),r(4,"mat-autocomplete",5,1),L(6),b(7,"async"),R(8,fe,14,7,"mat-option",6,T),p()()),t&2){let i=H(5);O("px-0",n.isOnModalVariant())("px-5",!n.isOnModalVariant()),a(),y(n.isOnModalVariant()?-1:1),a(),O("px-6",n.isOnModalVariant()),c("formControl",n.variant)("matAutocomplete",i)("id",n.inputID()),a(2),c("displayWith",n.displayFn);let v=V(7,11,n.filteredVariants$);a(4),$(v)}},dependencies:[G,me,pe,re,le,te,X,Y,ee,B,Q],styles:["input[_ngcontent-%COMP%]{height:38px!important;border-radius:.375rem;border:1px solid #ced4da;width:100%;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{top:13px;left:23px}div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}.fa-image-autocomplete[_ngcontent-%COMP%]{font-size:20px}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%]{margin:.1rem 0;overflow:visible;line-height:initial;word-wrap:break-word;white-space:pre-wrap}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%] span.mdc-list-item__primary-text[_ngcontent-%COMP%]{white-space:normal}.mat-mdc-option[_ngcontent-%COMP%]{font-size:13px;height:auto!important;padding:10px 6px!important} .mdc-list-item__primary-text{margin-right:0;width:100%}"],changeDetection:0})};export{ce as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as $}from"./chunk-S77FVPQM.js";import{a as T,b as Q}from"./chunk-NH6IWUZH.js";import{a as h}from"./chunk-NZXJPRXS.js";import{a as W}from"./chunk-LZAV46F7.js";import{a as A,c as q}from"./chunk-E2C2JWUR.js";import{b as J,c as P}from"./chunk-23G4CQ4S.js";import{a as c}from"./chunk-SY5NNN4M.js";import{a as l}from"./chunk-PTRS3UA6.js";import{a as F}from"./chunk-ZPXUDL2F.js";import{n as I,q as C}from"./chunk-D3E5UKKJ.js";import{C as b,G,O as f,_ as U,b as B,e as D,ha as d,ka as u,m as V,p as L,pd as k,r as S}from"./chunk-M3O2GJ3M.js";import{h as p}from"./chunk-KMHZKFQS.js";var O=class{ID;Number;Due;Date;CustomDateField;TimeCustom;SurchargePcg;TempSurchargePcg;ToP;Note;ReferenceInvoiceID;PaymentStateID;Sales;DateCustom;constructor(){this.ID=l.GuidEmpty,this.SurchargePcg=0,this.TempSurchargePcg=0,this.Due=null}};var K=(i=>(i[i.Unsent=0]="Unsent",i[i.AwaitingCollection=1]="AwaitingCollection",i[i.Partial=2]="Partial",i[i.Sent=3]="Sent",i))(K||{});var g=class{ID;EntityID;RegisterID;TypeID;Date;Number;CustomerID;SalesID;Discount=0;Discount2=0;DiscountAmount=0;CustomerDiscountRate=0;Note="";DeliveryOutletID;TaxTypeID;CurrencyID;CurrencyRate;PointUsed;InvoicedStateID;ReferenceNumber="";LogisticsServiceID;ParkLabel="";NumberOfPerson;ClientTimestamp;Created;PromotionCoupon="";CouponType=1;PromotionNote="";DeliveryStateID;CouponProvider="Internal";CurrencySymbol;constructor(){this.ID=l.GuidEmpty,this.EntityID=l.GuidEmpty,this.RegisterID=l.GuidEmpty,this.Number="",this.CustomerID=null,this.SalesID=null,this.Discount=0,this.Discount2=0,this.DiscountAmount=0,this.Note="",this.TaxTypeID=l.GuidEmpty,this.CurrencyID=1,this.CurrencyRate=1,this.DeliveryStateID=3,this.PointUsed=0,this.NumberOfPerson=1,this.Date=new Date}removeEnterNote(){this.Note&&(this.Note=this.Note.replace(/\n/g,""))}};var x=class{MethodID;Amount=0;Note;Index;Date;PaidAmount;Code;MethodName;InvoiceID;ID;TypeID;constructor(t,e,r,i){this.MethodID=t||0,this.Amount=e||0,this.PaidAmount=r||0,this.Date=i}};var v=class{Name;Phone;Address;City;constructor(){this.Name="",this.Phone="",this.Address="",this.City=""}};var y=class{DeliveryEntityID;Type;NewOrderID;constructor(){this.DeliveryEntityID="",this.Type=3}};var R=class{Amount;ApplyToProduct;Code;Type;TypeDescription;Coupon;Notification;MaxDiscount;Note};var m=class{Order;Invoice;Shipping;Action;Payments;Items;CartItems;Promotion;ContactName;SplitParkLabel;get cartQuantity(){let t=0;for(let e of this.CartItems)t+=e.Quantity;return t}constructor(){this.Order=new g,this.Invoice=new O,this.Shipping=new v,this.Action=new y,this.Payments=Array(),this.Items=Array(),this.CartItems=Array(),this.ContactName=""}get TotalPaidAmount(){let t=0;return this.Payments.forEach(e=>{t+=e.PaidAmount}),t}get RedeemableAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID!=1);return this.GetAmountByCart(t)}get TotalQuantity(){let t=0;return this.CartItems.forEach(e=>{e.PromotionGift||(t+=e.Quantity)}),t}get CashOnlyAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID==1);return this.GetAmountByCart(t)}get PointOnlyAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID==2);return this.GetAmountByCart(t)}get PrepaidPackageItem(){return this.CartItems.filter(e=>e.Variant.TypeID==10)}GetAmountByCart(t){let e=0;return t.forEach(r=>{e+=r.Total}),e=e*(100-this.Order.Discount)/100,e=e*(100-this.Order.Discount2)/100,e}getRewards(){return this.CartItems.filter(e=>e.PromotionGift)}};p([h(()=>g)],m.prototype,"Order",2),p([h(()=>O)],m.prototype,"Invoice",2),p([h(()=>v)],m.prototype,"Shipping",2),p([h(()=>y)],m.prototype,"Action",2),p([h(()=>x)],m.prototype,"Payments",2),p([h(()=>T)],m.prototype,"Items",2),p([h(()=>Q)],m.prototype,"CartItems",2),p([h(()=>R)],m.prototype,"Promotion",2);var N=class{Success;Message;message;ObjectID;SalesOrderID;OutDeliveryID;Contact;LoyaltyPoint;InvoiceNumber;Creator;OrderTimeString;PrintMode;PaymentStateID;PaymentStateLabel;Final;InvoiceNumberResult;constructor(){this.Success=!0,this.Message="",this.ObjectID="",this.SalesOrderID="",this.OutDeliveryID="",this.Contact=null,this.LoyaltyPoint="",this.InvoiceNumber="",this.Creator="",this.OrderTimeString="",this.PrintMode=0,this.PaymentStateID=0,this.PaymentStateLabel="",this.Final=0}};var M=class s{constructor(t,e,r,i){this.httpService=t;this._localDataService=e;this._onlineStatusService=r;this._toastrService=i;this._onlineStatusService.getOnlineStatus$().subscribe(o=>{this.isOnline=o})}_Data=new D(null);Data$=this._Data.pipe(f(),b(t=>t!==null));isOnline;get Data(){return this._Data.value}pushNewValue(t){this._Data.next(t)}getSalesOrderPrint(t){return this.httpService.post("/API/POS/GetSalesOrderPrint",{TemplateID:t})}submitOrder(t,e){let r=this.generatePOSDataForSubmission(t,this.isOnline);if(this.isOnline)return this.submitOnline(r).pipe(this.handleTimeOutError(r));if(e.ModuleSell.EnableOfflineTransaction)return this._localDataService.syncOrder(r).pipe(S(()=>this.generateCompleteData(r)));this._toastrService.warning("Offline order is not Supported!","Info!")}uploadOfflineOrder(t){return this._localDataService.uploadSingleOrder(t).pipe(G(e=>e?.message?.includes("objectStore does not exists")?this.submitOnline(t):V(()=>e)))}submitOnline(t){return this.httpService.post(c.SubmitOrder,t,F.pos.submitOrderTimeout)}handleTimeOutError(t){return B(G(e=>{if(e instanceof L||e?.name=="TimeoutError"){let r=this.generateCompleteData(t);this.pushNewValue(r)}throw e}))}generatePOSDataForSubmission(t,e=!0){let r=Object.assign(new m,t);r.Items=[],r.Order.CustomerID==null&&(r.Order.CustomerID=l.GuidEmpty),r.Order.SalesID==null&&(r.Order.SalesID=l.GuidEmpty);let i=1;r.Payments=r.Payments.map(a=>(a.Date=r.Order.Date,a.Index=i,i++,delete a.TypeID,a));let o=1;for(let a of r.CartItems){let n=new T;n.ID=a.ID,n.VariantID=a.VariantID,n.Quantity=a.Quantity,n.Cost=a.Cost,n.Price=a.Price,n.Discount=a.Discount,n.DiscountAmount=a.DiscountAmount,n.Note=a.Note,n.Taxable=a.Variant.Taxable,n.LoyaltyPoint=a.LoyaltyPoint,n.UnitCost=a.Cost,n.UnitPrice=a.Price,n.UnitPriceOriginal=a.UnitPriceOriginal,n.UnitExpense=a.UnitExpense,n.EntityID=a.EntityID,n.Index=o,n.UnitQuantity=a.UnitQuantity,n.PriceTypeID=a.PriceTypeID,n.PriceNote=a.PriceNote,n.Splited=a.SplitQuantity>0,n.SplitQuantity=a.SplitQuantity,n.InventoryTypeID=a.Variant.TypeID,n.SalesID="",n.Serial=a.Serial,a.SalesID&&(n.SalesID=a.SalesID),delete a.CouponDiscount,r.Items.push(n),o++}return e?(delete r.CartItems,delete r.Order.ClientTimestamp):r.Order.ClientTimestamp=new Date,r}generateCompleteData(t){let e=new N;return e.InvoiceNumber=t.Order.Number,e.OrderTimeString=new Date().toString(),e.PaymentStateID=t.Action?.Type,e.PaymentStateLabel="Offline",e.Success=!0,e.OutDeliveryID=t.Action.DeliveryEntityID,e}GetReturnInvoice(t,e){return this.httpService.get(c.ReturnInvoiceV2,[{key:"EntityID",value:e},{key:"Number",value:t}])}GetInvoiceBySoID(t){return this.httpService.get(c.GetPOSDataByID,[{key:"ID",value:t}])}UploadCSV(t,e){let r={CartItems:t,EntityID:e};return this.httpService.post(c.UploadCsv,r)}sendEmail(t,e){return new Promise((r,i)=>{this._localDataService.isProductFromServer().subscribe(o=>{if(o){let a={invoiceID:e,email:t};this.httpService.post(c.SendInvoiceEmail,a).subscribe({next:n=>{r(n)},error:n=>{i(n)}})}else i(J.wrongOfflineAction)})})}sendWhatsaap(t,e){let r={InvoiceID:t,PhoneNumber:e};return this.httpService.post(c.SendInvoiceWhatsapp,r)}createCustomerByInvoice(t,e){let r={InvoiceID:t,Mobile:e};return this.httpService.post(c.CreateCustomerInvoice,r)}saveCommission(t,e){let r={SOID:t,commission:e};return this.httpService.POSText("/API/Transaction/SetCommission",r)}generateReceiptA4(t){let e={ID:t};return this.httpService.post(c.InvoiceA4,e)}getVacant(t){return this.httpService.get(c.GetVacant,[{key:"EntityID",value:t}])}static \u0275fac=function(e){return new(e||s)(u(C),u(P),u(A),u(I))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var z=(o=>(o[o.cash=1]="cash",o[o.card=2]="card",o[o.emoney=3]="emoney",o[o.other=4]="other",o[o.ECR=99]="ECR",o))(z||{});var E=class s{constructor(t,e,r){this._OrderHttpService=t;this._customerHttpService=e;this._toastrService=r}_Data=new D(new m);transaction_id;Data$=this._Data.asObservable();get Data(){return this._Data.value}pushNewValue(t){if(t)this._Data.next(t);else{let e=this.Data;this._Data.next(e)}}submitOrder(t){return new Promise((e,r)=>{this.checkTransactionId(),this._OrderHttpService.submitOrder(this.Data,t).subscribe({next:i=>{e(i)},error:i=>{this.Data.Items=[],r(i)}})})}uploadOfflineOrder(){return this.checkTransactionId(),this._OrderHttpService.uploadOfflineOrder(this.Data)}checkTransactionId(){let e=this.Data.Payments.find(r=>r.TypeID==3);l.IsNotEmpty(e)&&l.IsEmpty(this.transaction_id)&&this._toastrService.warning("Midtrans transaction_id is empty. Please verify manually!","Mobile Payment Failure")}updateCustomerID(t){return this.Data.Order.CustomerID=t,this.pushNewValue(this.Data),new Promise((e,r)=>{this._customerHttpService.GetPrivilegeByID(t,this.Data.Order.EntityID).subscribe({next:i=>{this._customerHttpService.Data=i,this.pushNewValue(this.Data),e(i)},error:i=>{this.Data.Order.CustomerID=null,this.Data.ContactName=null;let o=i.error?.Message;i.status==409?this._toastrService.warning(o,"Warning"):this._toastrService.error(o,`API Error - ${i.status}`),r(i)}})})}static \u0275fac=function(e){return new(e||s)(u(M),u(q),u(I))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var w=class s{constructor(t,e,r){this._localDataService=t;this._onlineStatusService=e;this._httpService=r;this._onlineStatusService.getOnlineStatus$().subscribe(i=>{this.isOnline=i})}_Data=new D(null);Data$=this._Data.asObservable().pipe(b(t=>t!==null),f());isOnline;get Data(){return this._Data.value}pushNewValue(t){this._Data.next(t)}requestObservable(){return this.isOnline?this._httpService.get(c.GetPOSStorage).pipe(S(t=>({data:t,type:"Online"}))):this._localDataService.getPOSStorage().pipe(b(t=>t!=null),S(t=>({data:t,type:"Offline"})))}getOutletName(t){return this.Data.Entities.find(r=>r.ID==t)?.Name}static \u0275fac=function(e){return new(e||s)(u(P),u(A),u(C))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var X=class{Prefix;Seed;Digit;constructor(){this.Prefix=null,this.Seed=null,this.Digit=null}static Generate(t){let e="";if(t.Seed){let r=t.Seed+"";for(;r.length<t.Digit;)r="0"+r;e=l.StringFormat(t.Prefix,r)}return e}};var H=class{ModuleSell;ApplicationLoyalty;ApplicationMath;CoreDefaults;ModuleDelivery;ApplicationParkAndRetrieve;ApplicationRegisterClosure;PaymentConfigGopay;PaymentConfigLink;PrintConfigInvoice;CorePrint;PaymentConfigEmpatKali;ApplicationSettings;PrintConfigGeneral;ModuleProducts;ModuleContact;ApplicationTransactionNumbering;ModuleOrders;ModuleShift;ModuleBuy;ModuleAdjustment;TadaCouponVisible;CouponRedemptionType;ProviderOption;WhatsAppConfigJSON};var Y=class s{constructor(t,e,r,i){this._orderDataService=t;this._posService=e;this.POSMATH=r;this.decimalPipe=i;this._orderDataService.Data$.pipe(U(o=>this._posService.Data$.pipe(S(a=>({appConfig:a.AppConfigJSON,salesOrder:o}))))).subscribe(o=>{this.salesOrderData=o.salesOrder,this.appConfigJSON=o.appConfig,this.calculateDiscountAmount(),this.pushNewValue(this.grandTotal)})}_Data=new D(0);Data$=this._Data.asObservable().pipe(f());tax=new $;discountAfterTax=0;currencySymbol="Rp";get Data(){return this._Data.value}salesOrderData=new m;appConfigJSON=new H;pushNewValue(t){this._Data.next(t)}get grandTotal(){let t=this.TotalAfterSurcharge;return isNaN(t)?0:t}setDecimalDigit(t){let e=this.decimalPipe.transform(t,"1.0-4");return t=parseFloat(e.split(",").join("")),t}get TotalAfterTax(){let t=this.TaxAmount,e=this.TotalBeforeTax+t;return e=this.POSMATH.Round(e,this.appConfigJSON.ApplicationMath.RoundingDigit.DecimalPlaceValue,this.appConfigJSON.ApplicationMath.RoundingDigit.RoundAlgorithm),e}get TotalBeforeTax(){let t=this.tax?.CalculationTypeID===1,e=0;return t?e=this.DiscountTotal-this.TaxAmount:e=this.DiscountTotal,e}get TotalAfterSurcharge(){let t=this.TotalAfterTax+this.SurchargeAmount;return this.POSMATH.Round(t,this.appConfigJSON.ApplicationMath.RoundingDigit.DecimalPlaceValue,this.appConfigJSON.ApplicationMath.RoundingDigit.RoundAlgorithm)}get TotalAfterDiscountTaxable(){return this.GrossTotalTaxable-this.DiscountTotal}get TaxAmount(){if(this.tax!=null){let t=0,e=this.appConfigJSON.ApplicationMath.RoundingTaxDigit.DecimalPlaceValue,r=this.appConfigJSON.ApplicationMath.RoundingTaxDigit.RoundAlgorithm,i=this.GrossTotalTaxable;return this.tax.CalculationTypeID==1?t=this.tax.Rate/(100+this.tax.Rate)*i:t=this.tax.Rate/100*i,t=this.POSMATH.Round(t,e,r),t}else return 0}get SurchargeAmount(){return this.TotalAfterTax*this.salesOrderData.Invoice.SurchargePcg/100}get Discount1Amount(){return this.GrossTotal*this.salesOrderData.Order.Discount/100}get AfterDiscount1Amount(){return this.GrossTotal-this.Discount1Amount}get Discount2Amount(){return this.AfterDiscount1Amount*this.salesOrderData.Order.Discount2/100}get AfterDiscount2Amount(){return this.AfterDiscount1Amount-this.Discount2Amount}get DiscountTotal(){return this.AfterDiscount2Amount-this.salesOrderData.Order.DiscountAmount}calculateDiscountAmount(){let t=this.salesOrderData.Order.DiscountAmount,e=0;this.AfterDiscount2Amount>=0&&t>0&&t>this.AfterDiscount2Amount&&(e=this.AfterDiscount2Amount),e!==0&&e<=t&&this.GrossTotal!==0&&(t=e),this.salesOrderData.Order.DiscountAmount=t}get GrossTotal(){return this.sum(this.salesOrderData.CartItems,"Total")}get GrossTotalTaxable(){let t=this.salesOrderData.CartItems.filter(r=>r.Taxable),e=this.sum(t,"Total");if(t.length!==0){let r=this.calculateDiscountTaxableItem(t);e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e=e-r}return e}calculateDiscountTaxableItem(t){let e=this.GrossTotal,r=this.salesOrderData.Order.DiscountAmount,i=0,o=0,a=0,n=0;for(let j of t)i=j.getItemAfterDiscount/e,o=i*r,n=o*j.Quantity,a+=n;return a}get GrossTotalNonTaxable(){let t=this.salesOrderData.CartItems.filter(r=>r.Taxable==!1),e=this.sum(t,"Total");return e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e=e-this.salesOrderData.Order.DiscountAmount,e}sum(t,e){let r=t.reduce((i,o)=>i+o[e],0);return r=this.setDecimalDigit(r),r}GetPointOnlyAmount(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID==2);return this.GetAmountByCart(t)}GetCashOnlyAmount(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID==1);return this.GetAmountByCart(t)}GetCashAndPointAmountCart(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID!=1);return this.GetAmountByCart(t)}GetAmountByCart(t){let e=this.sum(t,"Total");return e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e}calculateGrossTotal(t){return this.sum(t,"Total")}static \u0275fac=function(e){return new(e||s)(u(E),u(w),u(W),u(k))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};export{X as a,O as b,v as c,x as d,H as e,K as f,m as g,z as h,N as i,M as j,E as k,w as l,Y as m};
|
|
1
|
+
import{b as $}from"./chunk-S77FVPQM.js";import{a as T,b as Q}from"./chunk-NH6IWUZH.js";import{a as h}from"./chunk-NZXJPRXS.js";import{a as W}from"./chunk-LZAV46F7.js";import{a as A,c as q}from"./chunk-5N75OUUH.js";import{b as J,c as P}from"./chunk-WYMI7IXZ.js";import{a as c}from"./chunk-DUAKLYOO.js";import{a as l}from"./chunk-PTRS3UA6.js";import{a as F}from"./chunk-EY57M7DT.js";import{n as I,q as C}from"./chunk-D3E5UKKJ.js";import{C as b,G,O as f,_ as U,b as B,e as D,ha as d,ka as u,m as V,p as L,pd as k,r as S}from"./chunk-M3O2GJ3M.js";import{h as p}from"./chunk-KMHZKFQS.js";var O=class{ID;Number;Due;Date;CustomDateField;TimeCustom;SurchargePcg;TempSurchargePcg;ToP;Note;ReferenceInvoiceID;PaymentStateID;Sales;DateCustom;constructor(){this.ID=l.GuidEmpty,this.SurchargePcg=0,this.TempSurchargePcg=0,this.Due=null}};var K=(i=>(i[i.Unsent=0]="Unsent",i[i.AwaitingCollection=1]="AwaitingCollection",i[i.Partial=2]="Partial",i[i.Sent=3]="Sent",i))(K||{});var g=class{ID;EntityID;RegisterID;TypeID;Date;Number;CustomerID;SalesID;Discount=0;Discount2=0;DiscountAmount=0;CustomerDiscountRate=0;Note="";DeliveryOutletID;TaxTypeID;CurrencyID;CurrencyRate;PointUsed;InvoicedStateID;ReferenceNumber="";LogisticsServiceID;ParkLabel="";NumberOfPerson;ClientTimestamp;Created;PromotionCoupon="";CouponType=1;PromotionNote="";DeliveryStateID;CouponProvider="Internal";CurrencySymbol;constructor(){this.ID=l.GuidEmpty,this.EntityID=l.GuidEmpty,this.RegisterID=l.GuidEmpty,this.Number="",this.CustomerID=null,this.SalesID=null,this.Discount=0,this.Discount2=0,this.DiscountAmount=0,this.Note="",this.TaxTypeID=l.GuidEmpty,this.CurrencyID=1,this.CurrencyRate=1,this.DeliveryStateID=3,this.PointUsed=0,this.NumberOfPerson=1,this.Date=new Date}removeEnterNote(){this.Note&&(this.Note=this.Note.replace(/\n/g,""))}};var x=class{MethodID;Amount=0;Note;Index;Date;PaidAmount;Code;MethodName;InvoiceID;ID;TypeID;constructor(t,e,r,i){this.MethodID=t||0,this.Amount=e||0,this.PaidAmount=r||0,this.Date=i}};var v=class{Name;Phone;Address;City;constructor(){this.Name="",this.Phone="",this.Address="",this.City=""}};var y=class{DeliveryEntityID;Type;NewOrderID;constructor(){this.DeliveryEntityID="",this.Type=3}};var R=class{Amount;ApplyToProduct;Code;Type;TypeDescription;Coupon;Notification;MaxDiscount;Note};var m=class{Order;Invoice;Shipping;Action;Payments;Items;CartItems;Promotion;ContactName;SplitParkLabel;get cartQuantity(){let t=0;for(let e of this.CartItems)t+=e.Quantity;return t}constructor(){this.Order=new g,this.Invoice=new O,this.Shipping=new v,this.Action=new y,this.Payments=Array(),this.Items=Array(),this.CartItems=Array(),this.ContactName=""}get TotalPaidAmount(){let t=0;return this.Payments.forEach(e=>{t+=e.PaidAmount}),t}get RedeemableAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID!=1);return this.GetAmountByCart(t)}get TotalQuantity(){let t=0;return this.CartItems.forEach(e=>{e.PromotionGift||(t+=e.Quantity)}),t}get CashOnlyAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID==1);return this.GetAmountByCart(t)}get PointOnlyAmount(){let t=this.CartItems.filter(e=>e.Variant.PaymentTypeID==2);return this.GetAmountByCart(t)}get PrepaidPackageItem(){return this.CartItems.filter(e=>e.Variant.TypeID==10)}GetAmountByCart(t){let e=0;return t.forEach(r=>{e+=r.Total}),e=e*(100-this.Order.Discount)/100,e=e*(100-this.Order.Discount2)/100,e}getRewards(){return this.CartItems.filter(e=>e.PromotionGift)}};p([h(()=>g)],m.prototype,"Order",2),p([h(()=>O)],m.prototype,"Invoice",2),p([h(()=>v)],m.prototype,"Shipping",2),p([h(()=>y)],m.prototype,"Action",2),p([h(()=>x)],m.prototype,"Payments",2),p([h(()=>T)],m.prototype,"Items",2),p([h(()=>Q)],m.prototype,"CartItems",2),p([h(()=>R)],m.prototype,"Promotion",2);var N=class{Success;Message;message;ObjectID;SalesOrderID;OutDeliveryID;Contact;LoyaltyPoint;InvoiceNumber;Creator;OrderTimeString;PrintMode;PaymentStateID;PaymentStateLabel;Final;InvoiceNumberResult;constructor(){this.Success=!0,this.Message="",this.ObjectID="",this.SalesOrderID="",this.OutDeliveryID="",this.Contact=null,this.LoyaltyPoint="",this.InvoiceNumber="",this.Creator="",this.OrderTimeString="",this.PrintMode=0,this.PaymentStateID=0,this.PaymentStateLabel="",this.Final=0}};var M=class s{constructor(t,e,r,i){this.httpService=t;this._localDataService=e;this._onlineStatusService=r;this._toastrService=i;this._onlineStatusService.getOnlineStatus$().subscribe(o=>{this.isOnline=o})}_Data=new D(null);Data$=this._Data.pipe(f(),b(t=>t!==null));isOnline;get Data(){return this._Data.value}pushNewValue(t){this._Data.next(t)}getSalesOrderPrint(t){return this.httpService.post("/API/POS/GetSalesOrderPrint",{TemplateID:t})}submitOrder(t,e){let r=this.generatePOSDataForSubmission(t,this.isOnline);if(this.isOnline)return this.submitOnline(r).pipe(this.handleTimeOutError(r));if(e.ModuleSell.EnableOfflineTransaction)return this._localDataService.syncOrder(r).pipe(S(()=>this.generateCompleteData(r)));this._toastrService.warning("Offline order is not Supported!","Info!")}uploadOfflineOrder(t){return this._localDataService.uploadSingleOrder(t).pipe(G(e=>e?.message?.includes("objectStore does not exists")?this.submitOnline(t):V(()=>e)))}submitOnline(t){return this.httpService.post(c.SubmitOrder,t,F.pos.submitOrderTimeout)}handleTimeOutError(t){return B(G(e=>{if(e instanceof L||e?.name=="TimeoutError"){let r=this.generateCompleteData(t);this.pushNewValue(r)}throw e}))}generatePOSDataForSubmission(t,e=!0){let r=Object.assign(new m,t);r.Items=[],r.Order.CustomerID==null&&(r.Order.CustomerID=l.GuidEmpty),r.Order.SalesID==null&&(r.Order.SalesID=l.GuidEmpty);let i=1;r.Payments=r.Payments.map(a=>(a.Date=r.Order.Date,a.Index=i,i++,delete a.TypeID,a));let o=1;for(let a of r.CartItems){let n=new T;n.ID=a.ID,n.VariantID=a.VariantID,n.Quantity=a.Quantity,n.Cost=a.Cost,n.Price=a.Price,n.Discount=a.Discount,n.DiscountAmount=a.DiscountAmount,n.Note=a.Note,n.Taxable=a.Variant.Taxable,n.LoyaltyPoint=a.LoyaltyPoint,n.UnitCost=a.Cost,n.UnitPrice=a.Price,n.UnitPriceOriginal=a.UnitPriceOriginal,n.UnitExpense=a.UnitExpense,n.EntityID=a.EntityID,n.Index=o,n.UnitQuantity=a.UnitQuantity,n.PriceTypeID=a.PriceTypeID,n.PriceNote=a.PriceNote,n.Splited=a.SplitQuantity>0,n.SplitQuantity=a.SplitQuantity,n.InventoryTypeID=a.Variant.TypeID,n.SalesID="",n.Serial=a.Serial,a.SalesID&&(n.SalesID=a.SalesID),delete a.CouponDiscount,r.Items.push(n),o++}return e?(delete r.CartItems,delete r.Order.ClientTimestamp):r.Order.ClientTimestamp=new Date,r}generateCompleteData(t){let e=new N;return e.InvoiceNumber=t.Order.Number,e.OrderTimeString=new Date().toString(),e.PaymentStateID=t.Action?.Type,e.PaymentStateLabel="Offline",e.Success=!0,e.OutDeliveryID=t.Action.DeliveryEntityID,e}GetReturnInvoice(t,e){return this.httpService.get(c.ReturnInvoiceV2,[{key:"EntityID",value:e},{key:"Number",value:t}])}GetInvoiceBySoID(t){return this.httpService.get(c.GetPOSDataByID,[{key:"ID",value:t}])}UploadCSV(t,e){let r={CartItems:t,EntityID:e};return this.httpService.post(c.UploadCsv,r)}sendEmail(t,e){return new Promise((r,i)=>{this._localDataService.isProductFromServer().subscribe(o=>{if(o){let a={invoiceID:e,email:t};this.httpService.post(c.SendInvoiceEmail,a).subscribe({next:n=>{r(n)},error:n=>{i(n)}})}else i(J.wrongOfflineAction)})})}sendWhatsaap(t,e){let r={InvoiceID:t,PhoneNumber:e};return this.httpService.post(c.SendInvoiceWhatsapp,r)}createCustomerByInvoice(t,e){let r={InvoiceID:t,Mobile:e};return this.httpService.post(c.CreateCustomerInvoice,r)}saveCommission(t,e){let r={SOID:t,commission:e};return this.httpService.POSText("/API/Transaction/SetCommission",r)}generateReceiptA4(t){let e={ID:t};return this.httpService.post(c.InvoiceA4,e)}getVacant(t){return this.httpService.get(c.GetVacant,[{key:"EntityID",value:t}])}static \u0275fac=function(e){return new(e||s)(u(C),u(P),u(A),u(I))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var z=(o=>(o[o.cash=1]="cash",o[o.card=2]="card",o[o.emoney=3]="emoney",o[o.other=4]="other",o[o.ECR=99]="ECR",o))(z||{});var E=class s{constructor(t,e,r){this._OrderHttpService=t;this._customerHttpService=e;this._toastrService=r}_Data=new D(new m);transaction_id;Data$=this._Data.asObservable();get Data(){return this._Data.value}pushNewValue(t){if(t)this._Data.next(t);else{let e=this.Data;this._Data.next(e)}}submitOrder(t){return new Promise((e,r)=>{this.checkTransactionId(),this._OrderHttpService.submitOrder(this.Data,t).subscribe({next:i=>{e(i)},error:i=>{this.Data.Items=[],r(i)}})})}uploadOfflineOrder(){return this.checkTransactionId(),this._OrderHttpService.uploadOfflineOrder(this.Data)}checkTransactionId(){let e=this.Data.Payments.find(r=>r.TypeID==3);l.IsNotEmpty(e)&&l.IsEmpty(this.transaction_id)&&this._toastrService.warning("Midtrans transaction_id is empty. Please verify manually!","Mobile Payment Failure")}updateCustomerID(t){return this.Data.Order.CustomerID=t,this.pushNewValue(this.Data),new Promise((e,r)=>{this._customerHttpService.GetPrivilegeByID(t,this.Data.Order.EntityID).subscribe({next:i=>{this._customerHttpService.Data=i,this.pushNewValue(this.Data),e(i)},error:i=>{this.Data.Order.CustomerID=null,this.Data.ContactName=null;let o=i.error?.Message;i.status==409?this._toastrService.warning(o,"Warning"):this._toastrService.error(o,`API Error - ${i.status}`),r(i)}})})}static \u0275fac=function(e){return new(e||s)(u(M),u(q),u(I))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var w=class s{constructor(t,e,r){this._localDataService=t;this._onlineStatusService=e;this._httpService=r;this._onlineStatusService.getOnlineStatus$().subscribe(i=>{this.isOnline=i})}_Data=new D(null);Data$=this._Data.asObservable().pipe(b(t=>t!==null),f());isOnline;get Data(){return this._Data.value}pushNewValue(t){this._Data.next(t)}requestObservable(){return this.isOnline?this._httpService.get(c.GetPOSStorage).pipe(S(t=>({data:t,type:"Online"}))):this._localDataService.getPOSStorage().pipe(b(t=>t!=null),S(t=>({data:t,type:"Offline"})))}getOutletName(t){return this.Data.Entities.find(r=>r.ID==t)?.Name}static \u0275fac=function(e){return new(e||s)(u(P),u(A),u(C))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};var X=class{Prefix;Seed;Digit;constructor(){this.Prefix=null,this.Seed=null,this.Digit=null}static Generate(t){let e="";if(t.Seed){let r=t.Seed+"";for(;r.length<t.Digit;)r="0"+r;e=l.StringFormat(t.Prefix,r)}return e}};var H=class{ModuleSell;ApplicationLoyalty;ApplicationMath;CoreDefaults;ModuleDelivery;ApplicationParkAndRetrieve;ApplicationRegisterClosure;PaymentConfigGopay;PaymentConfigLink;PrintConfigInvoice;CorePrint;PaymentConfigEmpatKali;ApplicationSettings;PrintConfigGeneral;ModuleProducts;ModuleContact;ApplicationTransactionNumbering;ModuleOrders;ModuleShift;ModuleBuy;ModuleAdjustment;TadaCouponVisible;CouponRedemptionType;ProviderOption;WhatsAppConfigJSON};var Y=class s{constructor(t,e,r,i){this._orderDataService=t;this._posService=e;this.POSMATH=r;this.decimalPipe=i;this._orderDataService.Data$.pipe(U(o=>this._posService.Data$.pipe(S(a=>({appConfig:a.AppConfigJSON,salesOrder:o}))))).subscribe(o=>{this.salesOrderData=o.salesOrder,this.appConfigJSON=o.appConfig,this.calculateDiscountAmount(),this.pushNewValue(this.grandTotal)})}_Data=new D(0);Data$=this._Data.asObservable().pipe(f());tax=new $;discountAfterTax=0;currencySymbol="Rp";get Data(){return this._Data.value}salesOrderData=new m;appConfigJSON=new H;pushNewValue(t){this._Data.next(t)}get grandTotal(){let t=this.TotalAfterSurcharge;return isNaN(t)?0:t}setDecimalDigit(t){let e=this.decimalPipe.transform(t,"1.0-4");return t=parseFloat(e.split(",").join("")),t}get TotalAfterTax(){let t=this.TaxAmount,e=this.TotalBeforeTax+t;return e=this.POSMATH.Round(e,this.appConfigJSON.ApplicationMath.RoundingDigit.DecimalPlaceValue,this.appConfigJSON.ApplicationMath.RoundingDigit.RoundAlgorithm),e}get TotalBeforeTax(){let t=this.tax?.CalculationTypeID===1,e=0;return t?e=this.DiscountTotal-this.TaxAmount:e=this.DiscountTotal,e}get TotalAfterSurcharge(){let t=this.TotalAfterTax+this.SurchargeAmount;return this.POSMATH.Round(t,this.appConfigJSON.ApplicationMath.RoundingDigit.DecimalPlaceValue,this.appConfigJSON.ApplicationMath.RoundingDigit.RoundAlgorithm)}get TotalAfterDiscountTaxable(){return this.GrossTotalTaxable-this.DiscountTotal}get TaxAmount(){if(this.tax!=null){let t=0,e=this.appConfigJSON.ApplicationMath.RoundingTaxDigit.DecimalPlaceValue,r=this.appConfigJSON.ApplicationMath.RoundingTaxDigit.RoundAlgorithm,i=this.GrossTotalTaxable;return this.tax.CalculationTypeID==1?t=this.tax.Rate/(100+this.tax.Rate)*i:t=this.tax.Rate/100*i,t=this.POSMATH.Round(t,e,r),t}else return 0}get SurchargeAmount(){return this.TotalAfterTax*this.salesOrderData.Invoice.SurchargePcg/100}get Discount1Amount(){return this.GrossTotal*this.salesOrderData.Order.Discount/100}get AfterDiscount1Amount(){return this.GrossTotal-this.Discount1Amount}get Discount2Amount(){return this.AfterDiscount1Amount*this.salesOrderData.Order.Discount2/100}get AfterDiscount2Amount(){return this.AfterDiscount1Amount-this.Discount2Amount}get DiscountTotal(){return this.AfterDiscount2Amount-this.salesOrderData.Order.DiscountAmount}calculateDiscountAmount(){let t=this.salesOrderData.Order.DiscountAmount,e=0;this.AfterDiscount2Amount>=0&&t>0&&t>this.AfterDiscount2Amount&&(e=this.AfterDiscount2Amount),e!==0&&e<=t&&this.GrossTotal!==0&&(t=e),this.salesOrderData.Order.DiscountAmount=t}get GrossTotal(){return this.sum(this.salesOrderData.CartItems,"Total")}get GrossTotalTaxable(){let t=this.salesOrderData.CartItems.filter(r=>r.Taxable),e=this.sum(t,"Total");if(t.length!==0){let r=this.calculateDiscountTaxableItem(t);e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e=e-r}return e}calculateDiscountTaxableItem(t){let e=this.GrossTotal,r=this.salesOrderData.Order.DiscountAmount,i=0,o=0,a=0,n=0;for(let j of t)i=j.getItemAfterDiscount/e,o=i*r,n=o*j.Quantity,a+=n;return a}get GrossTotalNonTaxable(){let t=this.salesOrderData.CartItems.filter(r=>r.Taxable==!1),e=this.sum(t,"Total");return e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e=e-this.salesOrderData.Order.DiscountAmount,e}sum(t,e){let r=t.reduce((i,o)=>i+o[e],0);return r=this.setDecimalDigit(r),r}GetPointOnlyAmount(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID==2);return this.GetAmountByCart(t)}GetCashOnlyAmount(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID==1);return this.GetAmountByCart(t)}GetCashAndPointAmountCart(){let t=this.salesOrderData.CartItems.filter(e=>e.Variant.PaymentTypeID!=1);return this.GetAmountByCart(t)}GetAmountByCart(t){let e=this.sum(t,"Total");return e=e*(100-this.salesOrderData.Order.Discount)/100,e=e*(100-this.salesOrderData.Order.Discount2)/100,e}calculateGrossTotal(t){return this.sum(t,"Total")}static \u0275fac=function(e){return new(e||s)(u(E),u(w),u(W),u(k))};static \u0275prov=d({token:s,factory:s.\u0275fac,providedIn:"root"})};export{X as a,O as b,v as c,x as d,H as e,K as f,m as g,z as h,N as i,M as j,E as k,w as l,Y as m};
|