whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
public
/
Upload File:
files >> /home/qbizpnmr/arif.umairtax.com/public/ProductColumns-CibzypHy.js
import{u as _,a as m,ai as p,d6 as b,j as l,C as x,aA as v,by as h,bC as $,gm as f}from"./bundle.OlIVtvc7.js";import{S as C}from"./SortableVariableList-BCj_4ydS.js";import{u as g}from"./hooks-Bs_0mVnU.js";function V(){var r,d,c,i;const[t]=_(),u=m(),e=p(),s=b(),n=g();let a=[{value:"$product.item",label:t("item")},{value:"$product.description",label:t("description")},{value:"$product.quantity",label:t("quantity")},{value:"$product.unit_cost",label:t("unit_cost")},{value:"$product.tax",label:t("tax")},{value:"$product.discount",label:t("discount")},{value:"$product.line_total",label:t("line_total")},{value:"$product.product1",label:(r=e==null?void 0:e.custom_fields)!=null&&r.product1?s("product1").label():t("custom1")},{value:"$product.product2",label:(d=e==null?void 0:e.custom_fields)!=null&&d.product2?s("product2").label():t("custom2")},{value:"$product.product3",label:(c=e==null?void 0:e.custom_fields)!=null&&c.product3?s("product3").label():t("custom3")},{value:"$product.product4",label:(i=e==null?void 0:e.custom_fields)!=null&&i.product4?s("product4").label():t("custom4")},{value:"$product.gross_line_total",label:t("gross_line_total")},{value:"$product.tax_amount",label:t("tax_amount")}];return e!=null&&e.enabled_item_tax_rates||(a=a.filter(o=>o.value!=="$product.tax_amount"&&o.value!=="$product.tax")),l.jsxs(x,{title:l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx("div",{children:l.jsx(f,{color:"#2176FF",size:"1.3rem"})}),l.jsx("span",{children:e!=null&&e.settings.sync_invoice_quote_columns?t("product_columns"):t("invoice_product_columns")})]}),padding:"small",className:"shadow-sm",style:{borderColor:u.$24},headerStyle:{borderColor:u.$20},children:[l.jsx(C,{for:"product_columns",defaultVariables:a}),l.jsx("div",{className:"px-4 sm:px-6 py-4",children:l.jsx(v,{className:"border-dashed",borderColor:u.$20,withoutPadding:!0})}),l.jsx(h,{leftSide:t("share_invoice_quote_columns"),children:l.jsx($,{checked:!!(e!=null&&e.settings.sync_invoice_quote_columns),onValueChange:o=>n("sync_invoice_quote_columns",o)})})]})}export{V as default};
Copyright ©2021 || Defacer Indonesia