{"version":3,"sources":["Constants/Routes.js","Constants/ValidationMessages.js","Components/ErrorMessage.js","Components/LoadingSpinner.js","hooks/useTitle.js","Contexts/StoresContext.ts","hooks/useStores.ts","Pages/Login.tsx","Constants/Media.js","Pages/Dashboard/Counters.js","Pages/Dashboard/LicenceInfo.js","Pages/Dashboard/QuickActions.js","Pages/Dashboard/index.js","Constants/DefaultValues.js","stores/userStore.ts","stores/configurationStore.ts","stores/membershipsStore.js","stores/companyStore.ts","stores/dashboardStore.js","stores/authStore.js","Constants/NotificationsTypes.js","Constants/AppNotifications/StandardDismiss.js","Constants/AppNotifications/GenericNotifications.js","Constants/AppNotifications/InvoicenNotifications.js","Constants/AppNotifications/AppNotifications.js","i18n.js","stores/uiStore.js","Service/Setup.js","Service/Providers.js","Service/Account.js","Service/DocumentCompletes.ts","Service/Withholding.js","Service/InvoiceDocuments.tsx","Service/Countries.js","Service/index.js","Service/Reports.js","Service/Dashboards.js","Service/Settings.ts","Pages/Companies/Selection/AddMembershipOrCompany.js","Components/Modals/InvitationModal.js","Pages/Companies/Selection/index.js","Components/Forms/ProviderInformationForm.js","Utilities/index.js","Utilities/TransformDateTime.js","Utilities/TransformDate.js","Utilities/CurrentDate.js","Utilities/FormatCurrency.js","Components/Forms/AmountsForm/AmountsSection/AmountRow.js","Components/Forms/AmountsForm/AmountsSection/AmountCard.js","Components/Forms/AmountsForm/AmountsSection/index.js","Components/Forms/AmountsForm/FormSection.js","Components/Forms/AmountsForm/ButtonsSection.tsx","Components/Forms/AmountsForm/index.tsx","Components/DatePicker/index.js","Components/Forms/InvoiceInformation.tsx","Components/Forms/IdentificationLookup.js","Pages/Invoices/Register.js","Pages/Invoices/Edit.tsx","Components/InvitationCard.js","Pages/PendingInvitations.js","Pages/Withholding/Generation/PruchaseRegistration.tsx","Components/SAcordion/CustomAcordionToggle.js","Components/SAcordion/Body.js","Components/SAcordion/index.js","Components/SAcordion/Header.js","Pages/Withholding/Generation/InvoiceSelectionForm/DocumentCard.tsx","Components/LoadingSpinnerAlt.js","Pages/Withholding/Generation/InvoiceSelectionForm/ActionButtons.tsx","Pages/Withholding/Generation/InvoiceSelectionForm/DocumentSelectionForm.tsx","Pages/Withholding/Generation/WhithholdingInfoForm.js","Components/Forms/EmailSendForm.js","stores/Components/emailSendModalStore.js","Components/Modals/WithholdingEmailSendModal.js","Pages/Withholding/Generation/FinalOptions.tsx","Pages/Withholding/Generation/WithholdingGenerationSteps.ts","Pages/Withholding/Generation/index.tsx","Components/Layouts/ListLayout.js","Pages/Invoices/List/InvoicesListContext.ts","Pages/Invoices/List/ActionButtons.tsx","Pages/Invoices/List/LargeScreen.tsx","Pages/Invoices/List/InvoiceCard.tsx","Pages/Invoices/List/SmallScreen.tsx","Pages/Invoices/List/index.tsx","Pages/Providers/List/ActionButtons.js","Pages/Providers/List/ProviderCard.js","Pages/Providers/List/index.js","Pages/Providers/Edit.js","stores/providersStore.ts","stores/invoicesStore.js","stores/withholdingsStore.ts","Pages/Withholding/List/ActionButtons.js","Pages/Withholding/List/LargeScreen.js","Pages/Withholding/List/WithholdingCard.js","Pages/Withholding/List/SmallScreen.js","Pages/Withholding/List/Filter/index.js","stores/Pages/Withholding/withholdingListStore.js","Pages/Withholding/List/index.js","Constants/PurchaseLedgerFormats.ts","Constants/PurchaseLedgerTypes.ts","Pages/Reports/PurchaseLedger.js","Pages/Companies/Settings/store.js","Pages/Companies/Settings/index.js","stores/txtStore.js","Pages/Txt/List/GenerateButton.js","Pages/Txt/List/Filter.js","Pages/Txt/List/Table/Actions.js","Pages/Txt/List/Table/index.js","Pages/Txt/List/ListRender.js","Pages/Txt/List/index.js","Components/PrivateRoute.js","Components/AdminRoute.js","Components/SNavbar.js","Components/SSidebar/SLink.js","Components/SSidebar/index.js","Pages/Settings/index.tsx","Components/AppInside.js","App.js","serviceWorker.js","stores/commonStore.js","stores/index.js","yup-custom.ts","stores/RootStore.ts","index.js"],"names":["APP","ErrorMessage","_ref","error","t","useTranslation","React","createElement","Fragment","className","message","hasOwnProperty","key","values","Object","keys","LoadingSpinner","useTitle","title","document","StoresContext","createContext","useStores","useContext","observer","_authStore$errors","_authStore$errors2","_useForm","useForm","register","handleSubmit","errors","getValues","watch","_useStores","userStore","authStore","_useState","useState","_useState2","_slicedToArray","step","setStep","_useState3","_useState4","userExists","setUserExists","role","src","alt","Form","onSubmit","data","check","Email","then","ex","login","Password","catch","err","PasswordRepeat","sendRegister","disabled","inProgress","style","color","Group","controlId","Control","name","type","placeholder","defaultValue","ref","required","vlMessages","Button","validate","value","Row","Col","xs","sm","md","lg","variant","onClick","invalidLogin","passwordIncomplete","currentUser","token","Redirect","to","pathname","CounterContainer","children","Counter","_ref2","totalCount","_ref2$monthCount","monthCount","undefined","_ref3","ProvidersCount","WithholdingsCountMonth","WithholdingsCountTotal","InvoiceCountMonth","InvoiceCountTotal","inject","companyStore","membershipsStore","height","currentMembership","BusinessName","selectedCompany","LicenseType","Companies","length","LicenseRemainingDays","ActionButton","icon","_ref$url","url","_ref$bgColor","bgColor","Link","fontSize","QuickActions","dashboardStore","useEffect","fetchData","reset","Responsive","displayIn","isLoading","Counters","TotalsCounter","LicenceInfo","fakeDate","withholding","Id","IdProvider","Correlative","Date","DateCreation","GenerateTxt","DateGenerate","ImpositivePeriod","provider","Rif","FiscalAddress","PhoneNumber","WithholdingPercentageIVA","WithholdingPercentageISLR","Active","SpecialTaxpayer","invoice","Address","Phone","Celular","InvoiceNumber","ControlNumber","Serie","EmitDate","GenerateDate","ProcessDate","IdUserCreator","IdOperationType","IdDocumentType","WithholdingPercentage","WithholdingAmmount","DueDate","IdWithholding","invoiceDetail","IdInvoice","TaxBase","TaxPorcentage","TaxAmmount","TaxFree","Discount","TotalAmmount","TaxType","invoicePay","Ammount","Description","PaymentMethod","PayType","IdMoney","demoMembership","Name","RIF","EMail","PeopleContact","IdCountry","UserStore","_this","_classCallCheck","loadingUser","updatingUser","this","loadFromLocalStorage","reaction","window","localStorage","setItem","JSON","stringify","removeItem","_createClass","setCurrentUser","parse","getItem","e","user","decorate","observable","action","forgetAll","configurationStore","remember","documentsType","operationsType","taxes","email","dct","opt","setRemember","membership","serviceUrl","setServiceUrl","RouteWebService","logout","_objectSpread","defaultValues","_this2","apiService","Account","activeDemo","setOwnCompanies","OwnerCompanies","finally","setCurrentMembership","initProcess","sendDemoRequest","sendNewMembershipRequest","CompanyStore","ownCompanies","thirdPartyCompanies","company","isThirdParty","find","memb","Keymembership","setDocumentsType","DocumentTypes","setOperationsType","OperationTypes","setTaxes","Taxes","companies","newCorrelative","Settings","WithholdingCorrelative","newValue","parseInt","setSelectedCompany","fogetSelectedCompany","setThirdPartyCompanies","updateCompanyCurrentCorrelative","increaseCompanyCurrentCorrelativeByOne","setIsLoading","setData","newData","Dashboards","get","console","log","AuthStore","emailValidate","resp","status","response","arguments","setupStores","Error","body","User","ThirdCompanies","ConfirmPassword","_this3","_error","ModelState","Promise","resolve","NotificationsTypes","ERROR","SUCCESS","WARNING","INFO","DEFAULT","STANDARD_DISMISS","duration","onScreen","GENERIC_NOTIFICATIONS","NETWORK_ERROR","SUCCESS_CREATED","dismiss","SUCCESS_ADDED","SUCCESS_EDITED","SUCCESS_DELETED","SUCCESS_EMAIL_SEND","SUCCESS_SETTINGS_CHANGED","INTERNAL_SERVER_ERROR","NETWORK_TROUBLES","FAIL_EMAIL_SEND_RETRY","INVALID_CORRELATIVE","INVOICE_NOTIFICATIONS","INVOICE_DELETE_SUCCESS","INVOICE_DELETE_FAIL","AppNotifications","i18n","use","Backend","initReactI18next","init","fallbackLng","debug","ns","defaultNS","interpolation","escapeValue","uiStore","appNotifications","isSidebarVisible","innerWidth","lockBodyScroll","overflow","notification","NotificationsStore","addNotification","insert","container","animationIn","animationOut","toggleSidebar","closeSidebar","axios","interceptors","request","config","_userStore$currentUse","headers","Authorization","keyMembership","keyCompany","Keycompany","handleErrors","responseBody","res","requests","del","delete","concat","options","put","post","RESOURCE","Providers","getByRif","getById","getAll","initial","take","add","newProviderData","update","updatedData","userInfo","changePassword","OldPassword","NewPassword","deleteCompany","KeyCompany","guestGenerate","guestApprove","TokenRegister","guestReject","getGuestPendient","DocumentCompletes","getSingle","id","rsponse","getPending","Withholding","getByDate","from","getGeneratedTxts","_regeneratorRuntime","r","prototype","n","o","defineProperty","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","arg","call","h","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","__await","callInvokeWithMethodAndArg","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","isNaN","displayName","isGeneratorFunction","constructor","mark","setPrototypeOf","__proto__","awrap","async","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","delegateYield","InvoiceDocuments","_x","_x2","_getAll","_asyncToGenerator","_callee","_context","apply","deleteInvoice","_x3","_deleteInvoice","_callee2","_context2","Countries","Reports","idWithHolding","responseType","purchaseLedgerPdf","From","To","TypeLedger","TypeFormat","createTxt","downloadTxt","txtNumber","sendEmailWithHoldingPdf","IdWithHolding","mailsSend","params","changeCorrelativeWithholding","parentShowState","parentClose","isForMembership","isForDemo","membershipName","validationSchema","yup","shape","DocumentType","numbers","min","max","countries","setCountries","setValue","handleModalClose","Modal","show","onHide","updateLocalMembershipState","alert","Header","closeButton","Title","Body","Label","InputGroup","Prepend","as","onChange","target","map","country","CountryName","Footer","InvitationModal","toCompany","hanldeModalClose","withRouter","history","showCompanyRegModal","setShowCompanyRegModal","modalIsForMembership","setModalIsForMembership","_useState5","_useState6","modalIsForDemo","setModalIsForDemo","_useState7","_useState8","modalMembershipName","setModalMembershipName","_useState9","_useState10","showInvitationModal","setShowInvitationModal","_useState11","_useState12","inviteToCompany","renderMembership","isThirdCompany","xl","handleCompanySelecion","renderCompany","showModalForDemo","Container","AddMembershipOrCompany","nextStep","previous","providersStore","dirty","formState","providerExists","updateProvider","addProvider","readOnly","Check","label","defaultChecked","TransformDateTime","datetime","date","dd","getDate","mm","getMonth","strDate","getFullYear","hours","getHours","minutes","getMinutes","ampm","TransformDate","CurrentDate","currentDate","format","today","yyyy","FormatCurrency","Intl","NumberFormat","minimumFractionDigits","AmountRow","amount","deleteAmountEntry","Utilities","cursor","class","invoicesStore","row","confirm","deleteAmount","amounts","Table","striped","bordered","hover","AmountCard","numeral","locale","backToListHandler","control","Math","idCounter","setIdCounter","isValidSelectedTax","setIsValidSelectedTax","totalTax","setTotalTax","totalAmount","setTotalAmount","calculateTaxandTotal","base","tempTotalTax","tempTotalAmount","only2Decimals","parseFloat","addAmount","taxTypeId","x","Value","setHiddenTaxPorcentageValue","selected","tax","Controller","CurrencyInput","allowDecimals","decimalsLimit","decimalSeparator","groupSeparator","calculateTotalFromTaxChange","handleSave","handlePrevious","cancel","STEPS","AmountsSection","ButtonsSection","FormSection","props","DateInput","assign","formatDate","moment","parseDate","str","localeUtils","MomentLocaleUtils","updateInvoiceState","DatePicker","dcType","fullIdentification","identificationLookup","autoFocus","inputmode","clear","postNewCompleteDocument","location","reload","scrollTo","resetProcess","IdentificationLookup","ProviderInformationForm","InvoiceInformation","AmountsForm","Prompt","when","AMOUNTS_LIST","InvitationCard","invitation","CommonStore","invitations","PURCHASE_REGISTRATION_STEPS","onPurchaseRegistered","setIsAddingInvoice","INVOICE_INFORMATION","AMOUNTS_INTRODUCTION","backToWitholdingSelection","CustomAcordionToggle","eventKey","decoratedOnClick","useAccordionToggle","Accordion","Collapse","Card","SAccordion","_ref$xs","_ref$sm","_ref$md","_ref$lg","CustomAccordionToggle","DocumentCard","handleSelectionChange","SAcordion","Invoice","CalculatedTotalAmount","checked","Selected","LoadingSpinnerAlt","_ref$dimension","dimension","_ref$percentage","percentage","width","ActionButtons","_handleDelete","isDeleting","setisDeleting","withholdingsStore","OverlayTrigger","placement","overlay","Tooltip","parentPrevious","isAddingInvoice","allStatusCheckbox","useRef","newState","pendingDocuments","pendingDocument","setPendingDocuments","_toConsumableArray","generateWithholding","selectedDocuments","filter","doc","postNew","fetchPendingDocuments","current","allChecked","PruchaseRegistration","IsNotWithholding","total","InvoiceDetails","selectableDocument","event","useHistory","updateCorrelativeAndImpositive","ymdDate","month","year","withZeros","substr","formatCorrelative","updateWithholdingState","emailSendModalStore","preventDefault","send","ReactMultiEmail","emails","_emails","setEmails","validateEmail","isEmail","getLabel","index","removeEmail","data-tag","data-tag-handle","emailsAreValid","EmailSendModalStore","isVisible","witholdingId","initalEmails","Service","toString","closeModal","openModal","setIsVisible","setWitholdingId","WithholdingEmailSendModal","size","EmailSendForm","Provider","ButtonWrapper","isDownloading","setIsDownloading","downloadDocument","WITHHOLDING_GENERATION_STEPS","IDENTIFICATION_LOOKUP","PROVIDER_INFO_INPUT","WITHHOLDING_INFO_INPUT","INVOICES_SELECTION","FINAL_OPTIONS","WhithholdingInfoForm","DocumentSelectionForm","FinalOptions","ListLayout","InvoicesListContext","LargeScreenInvoicesList","invoices","Total","InvoiceCard","SmallScreenInvoicesList","InvoicesList","setInvoices","_LoadInvoices","result","LoadInvoices","resource","idProvider","ProviderCard","fetch","providers","useParams","idLookUp","isSending","rif","setProvider","setProviderExists","_this4","_this5","InvoicePays","isEditing","amountData","updateOnService","withholdings","showEmailSendModal","emailTo","dateFrom","Moment","startOf","dateTo","endOf","invoiceIds","WithHolding","IdInvoices","documets","Documents","documentForSelection","fileName","FileDownload","setShowEmailSendModal","setEmailTo","idWithholding","correlative","providerEmail","withholdingListStore","WithholdingCard","DateFrom","DateTo","WithholdingListStore","totalPages","currentPage","perPage","skip","processData","pageNumber","ceil","moveToPage","WithholdingList","Filter","LargeScreen","SmallScreen","PURCHASE_LEDGER_FORMATS","PDF","description","extension","EXCEL","PURCHASE_LEDGER_TYPES","DETAILED","DAILY","RESUME","PurchaseLedger","fileData","filename","ledgerFormatValue","text","appendLedgerFormatExtensionToText","valueAsNumeric","SettingsStore","setTimeout","loadSettings","settingsStore","isFetching","isGenerating","txts","txt","fetchTxts","store","txtStore","defaultDateFrom","defaultDateTo","Actions","textAlign","GenerateNumber","TxtsTable","ListRender","TxtList","GenerateButton","Component","_ref$mustHaveSelected","mustHaveSelectedCompany","AdminRoute","_Component","_inherits","_super","_createSuper","Navbar","bg","expand","sticky","top","right","SLink","SNavbar","SSidebar","Switch","Route","exact","path","component","Dashboard","PrivateRoute","PendingInvitations","InvoiceRegister","InvoiceEdit","ProvidersList","PROVIDERS_EDIT","ProvidersEdit","WithholdingGeneration","CompanySettings","TxtGenerate","CompanySelection","App","Router","ReactNotification","Login","AppInside","Boolean","hostname","match","memberships","setUser","setMemberships","setCompany","mixed","default","oneOf","notOneOf","notType","defined","string","_ref4","_ref5","matches","uuid","trim","lowercase","uppercase","number","_ref6","_ref7","lessThan","_ref8","less","moreThan","_ref9","more","notEqual","_ref10","positive","negative","integer","_ref11","_ref12","object","noUnknown","_ref13","unknown","array","_ref14","_ref15","RootStore","commonStore","setAppAndVersionOnLs","process","lsAppName","lsAppVersion","stores","ReactDOM","render","StrictMode","Suspense","fallback","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":";maACaA,EAAM,O,mECDJ,EACD,qBADC,EAEY,0B,SCmBZC,EAjBM,SAAHC,GAAmB,IAAbC,EAAKD,EAALC,MACZC,EAAMC,cAAND,EAER,OACIE,IAAAC,cAAAD,IAAAE,SAAA,KACKL,GACGG,IAAAC,cAAA,QAAME,UAAU,eACe,kBAAlBN,EAAMO,SAAwBN,EAAED,EAAMO,SAC7CP,EAAMO,QAAQC,eAAe,QAAUR,EAAMO,QAAQC,eAAe,WAClEP,EAAED,EAAMO,QAAQE,KAAK,KAAKT,EAAMO,QAAQG,OAAOC,OAAOC,KAAKZ,EAAMO,QAAQG,QAAQ,OCF1FG,G,OARQ,WACnB,OACIV,IAAAC,cAAA,OAAKE,UAAU,iCACXH,IAAAC,c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n\r\nexport const DASHBOARD = APP + '/dashboard'\r\nexport const COMPANY_SELECTION = APP + '/companies/selection'\r\nexport const PENDING_INVITATIONS = APP + '/invitations/pending'\r\n\r\nexport const INVOICES_LIST = APP + '/invoices'\r\nexport const INVOICES_ADD = APP + '/invoices/add'\r\nexport const INVOICES_EDIT = APP + '/invoices/edit/:id'\r\n\r\nexport const PROVIDERS_LIST = APP + '/providers'\r\nexport const PROVIDERS_EDIT = APP + '/providers/edit/' //:id\r\n\r\nexport const WITHHOLDINGS_LIST = APP + '/withholdings/'\r\nexport const WITHHOLDINGS_GENERATION = APP + '/withholdings/generate'\r\n\r\nexport const REPORTS_PURCHASELEDGER = APP + '/reports/purchaseLedger'\r\n\r\nexport const COMPANY_SETTINGS = APP + '/companies/settings'\r\n\r\nexport const TXT_SECTION = APP + '/txt'\r\nexport const TXT_GENERATE = APP + '/txt/generate'\r\n\r\nexport const SETTINGS = APP + '/settings'","export default {\r\n REQUIRED: \"val_field_required\",\r\n PASSWORD_DO_NOT_MATCH: \"val_password_dont_match\",\r\n INVALID_DATE: \"val_invalid_date\",\r\n ONLY_NUMBERS: \"validations:only_numbers\",\r\n MAX_CHARACTERS: \"validations:max_characters\",\r\n MIN_CHARACTERS: \"validations:min_characters\"\r\n}","import React from 'react'\r\nimport { useTranslation } from 'react-i18next';\r\n\r\n\r\nconst ErrorMessage = ({ error }) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <>\r\n {error && \r\n \r\n { typeof error.message === 'string' && t(error.message)}\r\n { error.message.hasOwnProperty('key') && error.message.hasOwnProperty('values') &&\r\n t(error.message.key)+': '+error.message.values[Object.keys(error.message.values)[0]]\r\n }\r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default ErrorMessage","import React from 'react'\r\nimport './LoadingSpinner.scss'\r\n\r\nconst LoadingSpinner = () => {\r\n return (\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default LoadingSpinner","import { useTranslation } from 'react-i18next';\r\n\r\nconst useTitle = title => {\r\n const { t } = useTranslation();\r\n\r\n const defaultTitle = 'SAM Libro de Compras'\r\n title ? document.title = t(title) + ' | '+defaultTitle : document.title = defaultTitle \r\n};\r\n\r\nexport default useTitle","import { createContext } from 'react';\r\nimport RootStore from 'stores/RootStore'\r\nconst StoresContext = createContext({} as typeof RootStore)\r\nexport default StoresContext","import { useContext } from \"react\";\r\nimport StoresContext from \"Contexts/StoresContext\";\r\nimport RootStore from \"stores/RootStore\";\r\n\r\nconst useStores = (): typeof RootStore => useContext(StoresContext)\r\n\r\nexport default useStores","import React, { useState } from 'react'\r\nimport { observer } from 'mobx-react';\r\nimport { Redirect } from \"react-router-dom\";\r\nimport { Form, Button, Row, Col } from 'react-bootstrap';\r\nimport './Login.css'\r\nimport { COMPANY_SELECTION } from \"../Constants/Routes\";\r\nimport { useForm } from \"react-hook-form\";\r\nimport vlMessages from '../Constants/ValidationMessages'\r\nimport ErrorMessage from '../Components/ErrorMessage';\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { LOGO_URL } from 'Constants/Media'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle'\r\nimport useStores from 'hooks/useStores';\r\n\r\ntype LoginFormType = {\r\n Email: string,\r\n Password: string,\r\n PasswordRepeat?: string\r\n}\r\n\r\nconst LoginPage = () => {\r\n const { t } = useTranslation();\r\n useTitle('log_in')\r\n\r\n const { register, handleSubmit, errors, getValues, watch } = useForm();\r\n const { userStore, authStore } = useStores()\r\n\r\n const [step, setStep] = useState(1)\r\n const [userExists, setUserExists] = useState(false)\r\n\r\n function renderStep1() {\r\n return (\r\n <>\r\n
\r\n {t('login_instructions')}\r\n
\r\n \r\n \r\n \r\n \r\n {authStore.inProgress\r\n ?
\r\n : <>\r\n \r\n }\r\n \r\n )\r\n }\r\n\r\n function renderStep2() {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {!userExists &&\r\n \r\n value === watch('Password') || vlMessages.PASSWORD_DO_NOT_MATCH\r\n })}\r\n />\r\n \r\n \r\n }\r\n {/* Botones */}\r\n {authStore.inProgress\r\n ?
\r\n : \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n
\r\n )\r\n }\r\n\r\n function login(data: LoginFormType) {\r\n authStore.login(data.Email, data.Password).catch(err => { })\r\n }\r\n\r\n function sendRegister(data: LoginFormType) {\r\n authStore.register(data.Email, data.Password, data.PasswordRepeat)\r\n }\r\n\r\n function onSubmit(data: LoginFormType) {\r\n if (step === 1) {\r\n authStore.check(data.Email).then(ex => {\r\n setUserExists(ex)\r\n setStep(2)\r\n })\r\n }\r\n if (step === 2) {\r\n userExists ? login(data) : sendRegister(data)\r\n }\r\n }\r\n\r\n return (\r\n
\r\n
\r\n \"wave-background\"\r\n
\r\n
\r\n

Sam Suite

\r\n

Bienvenidos

\r\n \"background\"\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"logo\"\r\n

Libro de Compras

\r\n {step === 1 ? renderStep1() : renderStep2()}\r\n {\r\n authStore.errors?.invalidLogin &&\r\n Intento fallido}\r\n {authStore.errors?.passwordIncomplete &&\r\n La contraseña debe poseer al menos un caracter especial o numerico, debe poseer al menos una mayuscula y una miniscula\r\n }
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {userStore.currentUser && userStore.currentUser.token && }\r\n
\r\n )\r\n};\r\n\r\nexport default observer(LoginPage)","export const LOGO_URL = '/logo.png'\r\n","import React from 'react'\r\nimport { Row, Col, } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { observer } from 'mobx-react'\r\n\r\nconst CounterContainer = ({ children }) => {\r\n return (\r\n
\r\n {children}\r\n
\r\n )\r\n}\r\n\r\nconst Counter = ({ title, totalCount, monthCount = undefined }) => {\r\n const { t } = useTranslation()\r\n\r\n return (\r\n <>\r\n {t(title)}\r\n \r\n {monthCount !== undefined &&\r\n \r\n {t('month')}
\r\n {monthCount}\r\n \r\n }\r\n \r\n {t('total')}
\r\n {totalCount}\r\n \r\n
\r\n \r\n )\r\n}\r\n\r\nconst Counters = ({ data }) => {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n )\r\n}\r\n\r\nexport default (observer(Counters))","import React from 'react'\r\nimport { Row, Col, } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { LOGO_URL } from 'Constants/Media'\r\nimport { inject, observer } from 'mobx-react'\r\n\r\nconst LicenceInfo = ({ companyStore, membershipsStore }) => {\r\n const { t } = useTranslation()\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \"logo\"\r\n
\r\n
\r\n {t('membership')}
\r\n {membershipsStore.currentMembership.BusinessName}
\r\n {t('company')}
\r\n {companyStore.selectedCompany.BusinessName}
\r\n
\r\n \r\n \r\n
\r\n {t('licence_type')}
\r\n {membershipsStore.currentMembership.LicenseType}\r\n
\r\n \r\n \r\n
\r\n {t('compies_count')}
\r\n {membershipsStore.currentMembership.Companies.length}\r\n
\r\n \r\n \r\n
\r\n {t('licensetype')}
\r\n {membershipsStore.currentMembership.LicenseType}\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n {t('days_left') + ': '}\r\n {membershipsStore.currentMembership.LicenseRemainingDays}\r\n
\r\n \r\n \r\n
\r\n {t('pending_renovation') + ': '}\r\n
\r\n \r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default inject('companyStore', 'membershipsStore')(observer(LicenceInfo))","import React from 'react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Row, Col } from 'react-bootstrap'\r\nimport { Link } from 'react-router-dom'\r\nimport {WITHHOLDINGS_GENERATION, INVOICES_ADD} from 'Constants/Routes'\r\n\r\nconst ActionButton = ({ icon, title, url = '', bgColor = 'bg-primary' }) => {\r\n return (<>\r\n
\r\n \r\n
\r\n \r\n

{title}

\r\n
\r\n \r\n
\r\n )\r\n}\r\n\r\nconst QuickActions = () => {\r\n const { t } = useTranslation();\r\n\r\n return (<>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default QuickActions","import React, { useEffect } from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle'\r\nimport { Row, Col } from 'react-bootstrap'\r\nimport Counters from './Counters'\r\nimport LicenceInfo from './LicenceInfo'\r\nimport QuickActions from './QuickActions'\r\nimport { Responsive } from 'responsive-react'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\n\r\nconst Dashboard = ({ authStore, dashboardStore }) => {\r\n const { t } = useTranslation();\r\n useTitle('dashboard')\r\n\r\n useEffect(() => {\r\n dashboardStore.fetchData()\r\n return () => {\r\n dashboardStore.reset()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n return (\r\n
\r\n

{t('dashboard')}

\r\n {/* Acciones Rapidas, solo tablet y movil */}\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n {dashboardStore.isLoading &&\r\n \r\n \r\n \r\n }\r\n {!dashboardStore.isLoading &&\r\n \r\n \r\n {/* Avisos */}\r\n \r\n
\r\n \r\n\r\n
\r\n \r\n\r\n {/* Contadores */}\r\n\r\n \r\n {!dashboardStore.data &&\r\n

{t('error_loading_counters')}

\r\n }\r\n {dashboardStore.data &&\r\n \r\n }\r\n \r\n {/* Compradores */}\r\n {/* \r\n \r\n */}\r\n {/* Fidelidad */}\r\n \r\n
\r\n \r\n
\r\n \r\n }\r\n {/* Licencia */}\r\n \r\n \r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default inject('authStore', 'dashboardStore')(observer(Dashboard))","const fakeDate = '2000-01-01'\r\n\r\nexport default {\r\n withholding: {\r\n Id: '',\r\n IdProvider: '',\r\n Correlative: undefined,\r\n Date: new Date(),\r\n DateCreation: fakeDate,\r\n GenerateTxt: false,\r\n DateGenerate: fakeDate,\r\n ImpositivePeriod: ''\r\n },\r\n provider: {\r\n Rif: '',\r\n BusinessName: '',\r\n FiscalAddress: '',\r\n PhoneNumber: '',\r\n WithholdingPercentageIVA: '',\r\n WithholdingPercentageISLR: '',\r\n Active: true,\r\n SpecialTaxpayer: false,\r\n Id: '',\r\n Email: ''\r\n },\r\n invoice: {\r\n Id: '',\r\n Rif: '',\r\n BusinessName: '',\r\n Address: '',\r\n Phone: '',\r\n Celular: '',\r\n IdProvider: '',\r\n InvoiceNumber: '',\r\n ControlNumber: '',\r\n Serie: '',\r\n EmitDate: undefined,\r\n GenerateDate: fakeDate,\r\n ProcessDate: fakeDate,\r\n IdUserCreator: '',\r\n IdOperationType: 1, // por defecto 'compra' hasta que se puedan hacer retenciones de venta\r\n IdDocumentType: 0,\r\n WithholdingPercentage: 0,\r\n WithholdingAmmount: 0,\r\n DueDate: fakeDate,\r\n IdWithholding: ''\r\n },\r\n invoiceDetail: {\r\n IdInvoice: '',\r\n Row: 0,\r\n TaxBase: 0,\r\n TaxPorcentage: 0,\r\n TaxAmmount: 0,\r\n TaxFree: 0,\r\n Discount: 0,\r\n TotalAmmount: 0,\r\n TaxType: 0\r\n },\r\n invoicePay: {\r\n IdInvoice: '',\r\n Row: 0,\r\n Ammount: 0,\r\n Description: '',\r\n EmitDate: fakeDate,\r\n GenerateDate: fakeDate,\r\n PaymentMethod: {\r\n Id: 0,\r\n Description: '',\r\n PayType: 0,\r\n Active: true,\r\n IdMoney: ''\r\n }\r\n },\r\n demoMembership: {\r\n Name: '',\r\n RIF: '',\r\n FiscalAddress: '',\r\n Address: '',\r\n Phone: '',\r\n Celular: '',\r\n EMail: '',\r\n PeopleContact: '',\r\n IdCountry: ''\r\n }\r\n\r\n}","import { decorate, observable, action, reaction } from 'mobx';\r\n\r\nclass UserStore {\r\n\r\n loadingUser: boolean = false;\r\n currentUser: any | undefined = undefined\r\n updatingUser: boolean = false\r\n\r\n constructor() {\r\n this.loadFromLocalStorage()\r\n reaction(\r\n () => this.currentUser,\r\n currentUser => {\r\n if (currentUser) {\r\n window.localStorage.setItem('currentUser', JSON.stringify(currentUser));\r\n } else {\r\n window.localStorage.removeItem('currentUser');\r\n }\r\n }\r\n );\r\n }\r\n\r\n loadFromLocalStorage(){\r\n try{\r\n this.setCurrentUser(JSON.parse(window.localStorage.getItem('currentUser')!))\r\n }catch(e){\r\n this.setCurrentUser(undefined)\r\n window.localStorage.removeItem('currentUser');\r\n }\r\n }\r\n\r\n setCurrentUser(user: any) {\r\n this.currentUser = user;\r\n }\r\n\r\n forgetAll() {\r\n this.currentUser = undefined;\r\n }\r\n}\r\n\r\ndecorate(UserStore,{\r\n currentUser: observable,\r\n loadingUser: observable,\r\n setCurrentUser: action,\r\n forgetAll: action\r\n})\r\n\r\nexport default new UserStore();\r\n","import { decorate, observable, action, reaction } from 'mobx';\r\nclass configurationStore {\r\n remember: string | null = window.localStorage.getItem('rmb');\r\n documentsType: any[] | undefined = undefined;\r\n operationsType: any[] | undefined = undefined;\r\n taxes: any[] | undefined = undefined\r\n\r\n constructor() {\r\n this.loadFromLocalStorage()\r\n reaction(\r\n () => this.documentsType,\r\n documentsType => {\r\n if (documentsType) {\r\n let data = JSON.stringify(documentsType);\r\n localStorage.setItem('documentsType', data);\r\n } else {\r\n localStorage.removeItem('documentsType');\r\n }\r\n }\r\n );\r\n reaction(\r\n () => this.operationsType,\r\n operationsType => {\r\n if (operationsType) {\r\n let data = JSON.stringify(operationsType);\r\n localStorage.setItem('operationsType', data);\r\n } else {\r\n localStorage.removeItem('operationsType');\r\n }\r\n }\r\n );\r\n reaction(\r\n () => this.taxes,\r\n taxes => {\r\n if (taxes) {\r\n let data = JSON.stringify(taxes);\r\n localStorage.setItem('taxes', data);\r\n } else {\r\n localStorage.removeItem('taxes');\r\n }\r\n }\r\n );\r\n }\r\n\r\n loadFromLocalStorage() {\r\n const documentsType = localStorage.getItem('documentsType')\r\n const operationsType = localStorage.getItem('operationsType')\r\n const taxes = localStorage.getItem('taxes')\r\n if (!documentsType || !operationsType || !taxes) {\r\n // Sino no hay datos en el local storage significa que el ususario no ha seleccionado aún una\r\n // Compañia\r\n return\r\n }\r\n this.documentsType = JSON.parse(documentsType)\r\n this.operationsType = JSON.parse(operationsType)\r\n this.taxes = JSON.parse(taxes)\r\n }\r\n\r\n setRemember(email: string) {\r\n this.remember = email\r\n window.localStorage.setItem('rmb', email);\r\n }\r\n\r\n setDocumentsType(dct: any[]) {\r\n this.documentsType = dct\r\n }\r\n\r\n setOperationsType(opt: any[]) {\r\n this.operationsType = opt\r\n }\r\n\r\n setTaxes(taxes: any[]) {\r\n this.taxes = taxes\r\n }\r\n\r\n forgetAll() {\r\n this.documentsType = undefined;\r\n this.operationsType = undefined;\r\n this.taxes = undefined\r\n }\r\n}\r\n\r\ndecorate(configurationStore, {\r\n remember: observable,\r\n taxes: observable,\r\n documentsType: observable,\r\n operationsType: observable,\r\n setRemember: action,\r\n})\r\n\r\nexport default new configurationStore();\r\n","import { decorate, observable, action, reaction } from 'mobx';\r\nimport userStore from './userStore';\r\nimport apiService from 'Service'\r\nimport authStore from './authStore'\r\nimport companyStore from './companyStore'\r\n\r\nclass membershipsStore {\r\n currentMembership = undefined\r\n membership = {}\r\n isLoading = false\r\n serviceUrl = undefined\r\n\r\n constructor() {\r\n this.loadFromLocalStorage()\r\n reaction(\r\n () => this.currentMembership,\r\n currentMembership => {\r\n if (currentMembership) {\r\n let data = JSON.stringify(currentMembership);\r\n localStorage.setItem('currentMembership', data);\r\n } else {\r\n localStorage.removeItem('currentMembership');\r\n }\r\n }\r\n )\r\n }\r\n\r\n loadFromLocalStorage(){\r\n try {\r\n this.currentMembership = JSON.parse(localStorage.getItem('currentMembership'))\r\n if(this.currentMembership !== null && this.currentMembership !== undefined){\r\n this.setServiceUrl(this.currentMembership.RouteWebService)\r\n }\r\n } catch (e) {\r\n authStore.logout()\r\n }\r\n }\r\n\r\n setCurrentMembership(membership){\r\n this.currentMembership = membership\r\n this.setServiceUrl(this.currentMembership.RouteWebService)\r\n }\r\n\r\n updateLocalMembershipState(data){\r\n this.membership = {\r\n ...this.membership,\r\n ...data\r\n }\r\n }\r\n\r\n initProcess(defaultValues){\r\n this.membership = { ...defaultValues, EMail: userStore.currentUser.EMail }\r\n }\r\n\r\n sendDemoRequest(){\r\n this.isLoading = true\r\n return apiService.Account.activeDemo(this.membership).then(data => {\r\n companyStore.setOwnCompanies(data.OwnerCompanies)\r\n }).finally(() => this.isLoading = false)\r\n }\r\n\r\n sendNewMembershipRequest(){\r\n\r\n }\r\n\r\n forgetAll(){\r\n this.currentMembership = undefined\r\n this.serviceUrl = undefined\r\n }\r\n\r\n setServiceUrl(url){\r\n this.serviceUrl = url+'/api'\r\n }\r\n }\r\n\r\n decorate(membershipsStore, {\r\n membership: observable,\r\n currentMembership: observable,\r\n isLoading: observable,\r\n serviceUrl: observable,\r\n setCurrentMembership: action,\r\n initProcess: action,\r\n sendDemoRequest: action,\r\n sendNewMembershipRequest: action,\r\n forgetAll: action\r\n })\r\n\r\nexport default new membershipsStore();\r\n","import { decorate, observable, action, reaction } from 'mobx';\r\nimport authStore from './authStore'\r\nimport userStore from './userStore'\r\nimport configurationStore from './configurationStore'\r\nimport membershipsStore from './membershipsStore'\r\n\r\nclass CompanyStore {\r\n selectedCompany: any | undefined = undefined\r\n ownCompanies: any[] = []\r\n thirdPartyCompanies: any[] = []\r\n\r\n constructor() {\r\n this.loadFromLocalStorage()\r\n reaction(\r\n () => this.selectedCompany,\r\n selectedCompany => {\r\n if (selectedCompany) {\r\n let data =JSON.stringify(selectedCompany);\r\n localStorage.setItem('selectedCompany', data);\r\n } else {\r\n localStorage.removeItem('selectedCompany');\r\n }\r\n }\r\n );\r\n reaction(\r\n () => this.ownCompanies,\r\n ownCompanies => {\r\n if (ownCompanies) {\r\n let data =JSON.stringify(ownCompanies);\r\n localStorage.setItem('ownCompanies', data);\r\n } else {\r\n localStorage.removeItem('ownCompanies');\r\n }\r\n }\r\n );\r\n reaction(\r\n () => this.thirdPartyCompanies,\r\n thirdPartyCompanies => {\r\n if (thirdPartyCompanies) {\r\n let data =JSON.stringify(thirdPartyCompanies);\r\n localStorage.setItem('thirdPartyCompanies', data);\r\n } else {\r\n localStorage.removeItem('thirdPartyCompanies');\r\n }\r\n }\r\n );\r\n }\r\n\r\n loadFromLocalStorage(){\r\n if(userStore.currentUser){\r\n try{\r\n this.selectedCompany = JSON.parse(localStorage.getItem('selectedCompany')!)\r\n this.ownCompanies = JSON.parse(localStorage.getItem('ownCompanies')!)\r\n this.thirdPartyCompanies = JSON.parse(localStorage.getItem('thirdPartyCompanies')!)\r\n if (this.ownCompanies === null ||\r\n this.thirdPartyCompanies === null) {\r\n authStore.logout()\r\n }\r\n }catch(e){\r\n }\r\n }\r\n \r\n }\r\n\r\n setSelectedCompany(company: any, isThirdParty: boolean) {\r\n this.selectedCompany = {...company,isThirdParty: isThirdParty}\r\n let membership = this.ownCompanies.find(memb => memb.Keymembership === company.Keymembership)\r\n if(!membership){\r\n membership = this.thirdPartyCompanies.find(memb => memb.Keymembership === company.Keymembership)\r\n }\r\n membershipsStore.setCurrentMembership(membership)\r\n configurationStore.setDocumentsType(membership.DocumentTypes)\r\n configurationStore.setOperationsType(membership.OperationTypes)\r\n configurationStore.setTaxes(membership.Taxes)\r\n }\r\n\r\n setOwnCompanies(companies: any[]){\r\n this.ownCompanies = companies\r\n }\r\n\r\n setThirdPartyCompanies(companies: any[]){\r\n this.thirdPartyCompanies = companies\r\n }\r\n\r\n fogetSelectedCompany(){\r\n this.selectedCompany = undefined\r\n membershipsStore.forgetAll()\r\n configurationStore.forgetAll()\r\n }\r\n\r\n forgetAll(){\r\n this.ownCompanies = []\r\n this.thirdPartyCompanies = []\r\n this.selectedCompany = undefined\r\n configurationStore.forgetAll()\r\n }\r\n\r\n updateCompanyCurrentCorrelative(newCorrelative: any){\r\n this.selectedCompany.Settings.WithholdingCorrelative = newCorrelative\r\n }\r\n\r\n increaseCompanyCurrentCorrelativeByOne(){\r\n const value = parseInt(this.selectedCompany.Settings.WithholdingCorrelative)\r\n const newValue = value + 1\r\n this.selectedCompany = {\r\n ...this.selectedCompany,\r\n Settings: {\r\n ...this.selectedCompany.Settings,\r\n WithholdingCorrelative: newValue\r\n }\r\n }\r\n }\r\n}\r\n\r\ndecorate(CompanyStore, {\r\n selectedCompany: observable,\r\n ownCompanies: observable,\r\n thirdPartyCompanies: observable,\r\n setSelectedCompany: action,\r\n setOwnCompanies: action,\r\n fogetSelectedCompany: action,\r\n setThirdPartyCompanies: action,\r\n updateCompanyCurrentCorrelative: action,\r\n increaseCompanyCurrentCorrelativeByOne: action\r\n})\r\n\r\nexport default new CompanyStore();\r\n","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\n\r\nclass dashboardStore {\r\n isLoading = true\r\n data = undefined\r\n\r\n reset(){\r\n this.setIsLoading(true)\r\n this.setData(undefined)\r\n }\r\n\r\n setData(newData){\r\n this.data = newData\r\n }\r\n setIsLoading(value){\r\n this.isLoading = value\r\n }\r\n\r\n fetchData(){\r\n this.setIsLoading(true)\r\n this.setData({})\r\n apiService.Dashboards.get().then(data=>{\r\n this.setData(data)\r\n })\r\n .catch(err=>console.log(err))\r\n .finally(()=>{this.setIsLoading(false)})\r\n }\r\n}\r\n\r\ndecorate(dashboardStore, {\r\n isLoading: observable,\r\n\r\n data: observable,\r\n setData: action,\r\n\r\n fetchData: action\r\n})\r\n\r\nexport default new dashboardStore();\r\n","import { observable, action, decorate } from 'mobx';\r\nimport apiService from '../Service';\r\nimport userStore from './userStore';\r\nimport configurationStore from './configurationStore';\r\nimport companyStore from './companyStore';\r\nimport membershipsStore from './companyStore';\r\nimport dashboardStore from './dashboardStore'\r\n\r\nclass AuthStore {\r\n inProgress = false;\r\n errors = {\r\n invalidLogin: false,\r\n passwordIncomplete: false\r\n };\r\n\r\n check(email){\r\n this.inProgress = true;\r\n this.errors = {};\r\n return apiService.Account.emailValidate(email)\r\n .then(resp => { \r\n if(resp.status === 404) return false\r\n return false\r\n })\r\n .catch(action((err) => {\r\n if(err && err.response && err.response.status && err.response.status === 409){\r\n return true\r\n }\r\n if(err && err.response && err.response.status && err.response.status === 404) return false\r\n \r\n throw err;\r\n }))\r\n .finally(action(() => { this.inProgress = false; }));\r\n }\r\n\r\n login(Email, Password, remember = false) {\r\n this.inProgress = true;\r\n this.errors = {};\r\n //this.inProgress = false;\r\n return apiService.Account.login(Email, Password)\r\n .then(resp => {\r\n if (resp.status === 200){\r\n remember ? configurationStore.setRemember(Email) : configurationStore.setRemember('')\r\n return this.setupStores(resp.data)\r\n }\r\n })\r\n .catch(action((err) => {\r\n if(err.response && (err.response.status === 404 || err.response.status === 400)){\r\n this.errors.invalidLogin = true;\r\n throw new Error('invalid login')\r\n }\r\n this.errors = err.response && err.response.body && err.response.body.errors;\r\n throw err;\r\n }))\r\n .finally(action(() => { this.inProgress = false; }));\r\n }\r\n\r\n setupStores(data){\r\n userStore.setCurrentUser(data.User)\r\n companyStore.setOwnCompanies(data.OwnerCompanies)\r\n companyStore.setThirdPartyCompanies(data.ThirdCompanies)\r\n //configurationStore.setOperationsType(data.OperationTypes)\r\n //configurationStore.setTaxes(data.Taxes)\r\n //companyStore.setSelectedCompany(data.OwnerCompanies[0].Companies[0])\r\n \r\n }\r\n\r\n register(Email, Password, ConfirmPassword) {\r\n this.inProgress = true;\r\n this.errors = {};\r\n return apiService.Account.register(Email, Password, ConfirmPassword)\r\n .then(response => {\r\n if(response.status === 200) return this.login(Email, Password)\r\n })\r\n .catch(action((err) => {\r\n if(err.response && (err.response.status === 404)){\r\n this.errors.invalidLogin = true;\r\n return new Error('Error de conexion')\r\n }\r\n if(err.response && (err.response.status === 400)){\r\n this._error= err.response.data.ModelState;\r\n this.errors.passwordIncomplete = true;\r\n return new Error('La contraseña no cumple los requisitos minimos. Debe tener al menos una mayuscula, un numero y un caracter especial')\r\n }\r\n // this.errors = err.response && err.response.body && err.response.body.errors;\r\n throw err;\r\n }))\r\n .finally(action(() => { this.inProgress = false; }));\r\n }\r\n\r\n logout() {\r\n companyStore.forgetAll()\r\n configurationStore.forgetAll()\r\n userStore.forgetAll();\r\n membershipsStore.forgetAll()\r\n dashboardStore.reset()\r\n return Promise.resolve();\r\n }\r\n}\r\n\r\ndecorate(AuthStore,{\r\n inProgress: observable,\r\n errors: observable,\r\n login: action,\r\n register: action,\r\n logout: action,\r\n})\r\n\r\nexport default new AuthStore();\r\n","const NotificationsTypes = {\r\n ERROR: 'danger',\r\n SUCCESS: 'success',\r\n WARNING: 'warning',\r\n INFO: 'info',\r\n DEFAULT: 'default'\r\n}\r\n\r\nexport default NotificationsTypes","const STANDARD_DISMISS = {\r\n duration: 3000,\r\n onScreen: true\r\n}\r\n\r\nexport default STANDARD_DISMISS","import NotificationsTypes from '../NotificationsTypes'\r\nimport STANDARD_DISMISS from './StandardDismiss'\r\n\r\n\r\nconst GENERIC_NOTIFICATIONS = {\r\n NETWORK_ERROR: {\r\n type: NotificationsTypes.ERROR,\r\n message: 'connection_error',\r\n },\r\n SUCCESS_CREATED: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'succesfull_created',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n SUCCESS_ADDED: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'succesfull_added',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n SUCCESS_EDITED: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'succesfull_edited',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n SUCCESS_DELETED: {\r\n type: NotificationsTypes.WARNING,\r\n message: 'succesfull_deleted',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n SUCCESS_EMAIL_SEND: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'succesfull_email_send',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n SUCCESS_SETTINGS_CHANGED: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'success_settings_changed',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n INTERNAL_SERVER_ERROR: {\r\n type: NotificationsTypes.ERROR,\r\n message: 'server_error',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n NETWORK_TROUBLES: {\r\n type: NotificationsTypes.WARNING,\r\n message: 'connection_problems',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n FAIL_EMAIL_SEND_RETRY: {\r\n type: NotificationsTypes.ERROR,\r\n message: 'failed_email_send_retry_later',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n INVALID_CORRELATIVE: {\r\n type: NotificationsTypes.ERROR,\r\n message: 'new_correlative_must_be_greater_than_last_issued_document',\r\n dismiss: { ...STANDARD_DISMISS, duration: 5000 }\r\n }\r\n}\r\n\r\nexport default GENERIC_NOTIFICATIONS","import NotificationsTypes from '../NotificationsTypes'\r\nimport STANDARD_DISMISS from './StandardDismiss'\r\n\r\nconst INVOICE_NOTIFICATIONS = {\r\n INVOICE_DELETE_SUCCESS: {\r\n type: NotificationsTypes.SUCCESS,\r\n message: 'invoice_deleted_successfully',\r\n dismiss: STANDARD_DISMISS\r\n },\r\n INVOICE_DELETE_FAIL: {\r\n type: NotificationsTypes.ERROR,\r\n message: 'invoice_deletion_error',\r\n }\r\n}\r\n\r\n\r\nexport default INVOICE_NOTIFICATIONS\r\n","/**\r\n * Notificaciones pre-escritas\r\n */\r\nimport GENERIC_NOTIFICATIONS from \"./GenericNotifications\"\r\nimport INVOICE_NOTIFICATIONS from \"./InvoicenNotifications\"\r\n\r\n\r\nconst AppNotifications = {\r\n ...GENERIC_NOTIFICATIONS,\r\n ...INVOICE_NOTIFICATIONS\r\n}\r\n\r\nexport default AppNotifications","import i18n from 'i18next';\r\nimport { initReactI18next } from 'react-i18next';\r\n\r\nimport Backend from 'i18next-http-backend';\r\n// not like to use this?\r\n// have a look at the Quick start guide \r\n// for passing in lng and translations on init\r\n\r\ni18n\r\n // load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)\r\n // learn more: https://github.com/i18next/i18next-http-backend\r\n .use(Backend)\r\n // detect user language\r\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\r\n //.use(LanguageDetector)\r\n // pass the i18n instance to react-i18next.\r\n .use(initReactI18next)\r\n // init i18next\r\n // for all options read: https://www.i18next.com/overview/configuration-options\r\n .init({\r\n fallbackLng: 'es',\r\n debug: false,\r\n ns: ['common','notifications','validations'],\r\n defaultNS: 'common',\r\n\r\n interpolation: {\r\n escapeValue: false, // not needed for react as it escapes by default\r\n }\r\n });\r\n\r\nexport default i18n;","import { decorate, observable, action } from 'mobx';\r\nimport { store as NotificationsStore } from 'react-notifications-component';\r\nimport AppNotifications from 'Constants/AppNotifications/AppNotifications'\r\nimport i18n from 'i18n'\r\n\r\nclass uiStore {\r\n appNotifications = AppNotifications\r\n /* constructor(){\r\n window.onresize = action(()=>this.handleWindowResize())\r\n } */\r\n\r\n isSidebarVisible = (window.innerWidth > 992)\r\n \r\n /* handleWindowResize(){\r\n if(!(window.innerWidth > 768) && this.isSidebarVisible){\r\n this.toggleSidebar()\r\n }\r\n } */\r\n\r\n toggleSidebar() {\r\n this.isSidebarVisible = !this.isSidebarVisible\r\n this.lockBodyScroll()\r\n }\r\n\r\n closeSidebar(){\r\n this.isSidebarVisible = false;\r\n this.lockBodyScroll()\r\n }\r\n\r\n lockBodyScroll(){\r\n if (!(window.innerWidth > 992)) {\r\n window.document.body.style.overflow = this.isSidebarVisible ? \"hidden\" : \"auto\"\r\n }\r\n }\r\n \r\n addNotification(notification) {\r\n NotificationsStore.addNotification({\r\n insert: \"top\",\r\n container: \"bottom-right\",\r\n animationIn: [\"animated\", \"fadeIn\"],\r\n animationOut: [\"animated\", \"fadeOut\"],\r\n ...notification,\r\n message: i18n.t('notifications:'+notification.message),\r\n })\r\n }\r\n\r\n}\r\n\r\ndecorate(uiStore, {\r\n isSidebarVisible: observable,\r\n toggleSidebar: action,\r\n addNotification: action,\r\n closeSidebar: action\r\n})\r\n\r\n\r\n\r\nexport default new uiStore();\r\n","import userStore from 'stores/userStore';\r\nimport authStore from 'stores/authStore';\r\nimport axios from 'axios'\r\nimport companyStore from 'stores/companyStore';\r\nimport uiStore from 'stores/uiStore'\r\n\r\nexport const AUTH_SERVICE_URL = 'https://lcwebapi.samsuitecs.com/api';\r\n\r\naxios.interceptors.request.use(function (config) {\r\n if (userStore.currentUser?.token) {\r\n const token = userStore.currentUser.token;\r\n config.headers.Authorization = \"Bearer \"+token\r\n\r\n if (companyStore.selectedCompany) {\r\n config.headers.keyMembership = companyStore.selectedCompany.Keymembership\r\n config.headers.keyCompany = companyStore.selectedCompany.Keycompany\r\n }else{\r\n config.headers.keyMembership = '' //Obligatorio aunque el usuario no tenga compañia seleccionada.\r\n }\r\n }\r\n \r\n return config;\r\n});\r\n\r\nconst handleErrors = err => {\r\n if (err.response && err.response.status) {\r\n if (err.response.status === 401) {\r\n authStore.logout();\r\n }\r\n if (err.response.status >= 500 && err.response.status <= 599) {\r\n uiStore.addNotification(uiStore.appNotifications.INTERNAL_SERVER_ERROR)\r\n }\r\n }\r\n if (err && err.message && err.message === 'Network Error') {\r\n uiStore.addNotification(uiStore.appNotifications.NETWORK_ERROR)\r\n }\r\n throw err\r\n}\r\n\r\nconst responseBody = res => res\r\n\r\nconst requests = {\r\n del: (url, config) =>\r\n axios\r\n .delete(`${url}`,config)\r\n .then(responseBody)\r\n .catch(handleErrors),\r\n get: (url,options = {}) =>\r\n axios\r\n .get(`${url}`,options)\r\n .then(responseBody)\r\n .catch(handleErrors),\r\n put: (url, data) =>\r\n axios\r\n .put(`${url}`, data)\r\n .then(responseBody)\r\n .catch(handleErrors),\r\n post: (url, data) =>\r\n axios\r\n .post(`${url}`, data)\r\n .then(responseBody)\r\n .catch(handleErrors),\r\n};\r\n\r\nexport default requests","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\n\r\n\r\nconst RESOURCE = `/Providers`\r\n\r\nconst Providers = {\r\n getByRif: Rif =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/GetByRif/${Rif}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n if (response && response.status === 204) return false\r\n }).catch(err => {\r\n if(err && err.response && err.response.status === 404) return false\r\n throw err\r\n }),\r\n\r\n getById: Id =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/GetById/${Id}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n\r\n getAll: (initial, take) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/Get/${initial}/${take}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n\r\n add: newProviderData =>\r\n requests.post(`${membershipsStore.serviceUrl+RESOURCE}`, newProviderData).then(response => {\r\n if (response && response.status === 201) return response.data\r\n }),\r\n\r\n update: updatedData =>\r\n requests.put(`${membershipsStore.serviceUrl+RESOURCE}`, updatedData).then(response => {\r\n if (response && response.status === 200) return response.data\r\n return null\r\n }),\r\n\r\n delete: Id =>\r\n requests.del(`${membershipsStore.serviceUrl+RESOURCE}/Id`),\r\n}\r\n\r\nexport default Providers","import requests, {AUTH_SERVICE_URL} from './Setup'\r\n\r\nconst RESOURCE = `${AUTH_SERVICE_URL}/Account`\r\n\r\nconst Account = {\r\n userInfo: () =>\r\n requests.get(`${RESOURCE}/UserInfo`),\r\n\r\n login: (Email, Password) =>\r\n requests.post(`${RESOURCE}/Login`, { Email, Password }),\r\n\r\n register: (Email, Password, ConfirmPassword) =>\r\n requests.post(`${RESOURCE}/Register`, { Email, Password, ConfirmPassword }), \r\n\r\n changePassword: (OldPassword, NewPassword, ConfirmPassword) =>\r\n requests.post(`${RESOURCE}/ChangePassword`, { OldPassword, NewPassword, ConfirmPassword }),\r\n\r\n deleteCompany: (KeyCompany) =>\r\n requests.del(`${RESOURCE}/DeleteCompany/`+KeyCompany),\r\n\r\n guestGenerate: (Email, KeyCompany) =>\r\n requests.get(`${RESOURCE}/GuestGenerate/${Email}/${KeyCompany}`),\r\n\r\n guestApprove: (TokenRegister, KeyCompany) =>\r\n requests.get(`${RESOURCE}/GuestApprove/${TokenRegister}/${KeyCompany}`),\r\n\r\n guestReject: (TokenRegister, KeyCompany) =>\r\n requests.get(`${RESOURCE}/GuestReject/${TokenRegister}/${KeyCompany}`),\r\n\r\n getGuestPendient: (Email) =>\r\n requests.get(`${RESOURCE}/GetGuestPendient/${Email}`),\r\n \r\n emailValidate: (Email) =>\r\n requests.get(`${RESOURCE}/EmailValidate/${Email}/`), /* debe terminae en / */\r\n activeDemo: (data) =>\r\n requests.post(`${RESOURCE}/ActiveDemo`,data).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n};\r\n\r\nexport default Account","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\nimport IInvoiceDocumentComplete from 'interfaces/service/Invoice/IInvoiceDocumentComplete'\r\n\r\nconst RESOURCE = `/DocumentCompletes`\r\n\r\nconst DocumentCompletes = {\r\n add: (data: any) =>\r\n requests.post(`${membershipsStore.serviceUrl+RESOURCE}`, data).then(response => {\r\n if (response.status === 201) return response.data\r\n }),\r\n getSingle: (id: string) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/${id}`).then(rsponse => {\r\n\r\n }),\r\n getPending: (IdProvider: string) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/GetPending/${IdProvider}`).then(response => {\r\n if (response && response.status === 200) return response.data as IInvoiceDocumentComplete[]\r\n }),\r\n}\r\n\r\nexport default DocumentCompletes","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\n\r\n\r\nconst RESOURCE = `/WithHoldings`\r\n\r\nconst Withholding = {\r\n add: data =>\r\n requests.post(`${membershipsStore.serviceUrl+RESOURCE}`, data).then(response => {\r\n if (response && response.status === 201) return response.data\r\n }),\r\n getAll: (initial, take) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/Get/${initial}/${take}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n getByDate: (from, to, initial, take) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/GetByDate/${from}/${to}/${initial}/${take}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n getGeneratedTxts: (from, to) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/GetWithholdingTxtGenerate/${from}/${to}`).then(response=>{\r\n if (response && response.status === 200) return response.data\r\n })\r\n}\r\nexport default Withholding ","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\n\r\nconst RESOURCE = `/InvoiceDocuments`\r\n\r\n\r\nconst InvoiceDocuments = {\r\n add: (data: any) =>\r\n requests.post(`${membershipsStore.serviceUrl + RESOURCE}`, data).then(response => {\r\n if (response && response.status === 201) return true\r\n }),\r\n getAll: async (initial: number, take: number): Promise => {\r\n const response = await requests.get(`${membershipsStore.serviceUrl + RESOURCE}/Get/${initial}/${take}`)\r\n return response.data as IInvoiceDocument[]\r\n },\r\n deleteInvoice: async (invoice: IInvoiceDocument) => {\r\n const response = await requests.del(`${membershipsStore.serviceUrl + RESOURCE}/${invoice.Id}`)\r\n return response\r\n }\r\n}\r\n\r\nexport default InvoiceDocuments","import requests, {AUTH_SERVICE_URL} from './Setup'\r\n\r\nconst RESOURCE = `${AUTH_SERVICE_URL}/Countries`\r\n\r\nconst Countries = {\r\n get: () =>\r\n requests.get(`${RESOURCE}/Get`).then(response => {\r\n if(response && response.status===200) return response.data\r\n }),\r\n}\r\n\r\nexport default Countries","import Providers from './Providers'\r\nimport Account from './Account'\r\nimport DocumentCompletes from './DocumentCompletes'\r\nimport Withholding from './Withholding'\r\nimport InvoiceDocuments from './InvoiceDocuments'\r\nimport Countries from './Countries'\r\nimport Reports from './Reports'\r\nimport Dashboards from './Dashboards'\r\nimport Settings from './Settings'\r\n\r\n\r\nexport default {\r\n Providers,\r\n Account,\r\n DocumentCompletes,\r\n Withholding,\r\n InvoiceDocuments,\r\n Countries,\r\n Reports,\r\n Dashboards,\r\n Settings\r\n}","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\n\r\nconst RESOURCE = `/Reports`\r\n\r\nconst Reports = {\r\n //responseType: 'blob' necesario para la interpretación correcta del PDF\r\n withholding: idWithHolding =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/WithHoldingPdf/${idWithHolding}`, { responseType: 'blob' }).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n purchaseLedgerPdf: (From, To, TypeLedger, TypeFormat) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/PurchaseLedgerPdf/${From}/${To}/${TypeLedger}/${TypeFormat}`, { responseType: 'blob' }).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n createTxt: () =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/CreateTxt`, { responseType: 'blob' }).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n downloadTxt: txtNumber =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/DonwloadTxt/${txtNumber}`, { responseType: 'blob' }).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n sendEmailWithHoldingPdf: (IdWithHolding, mailsSend) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/SendEmailWithHoldingPdf`, { params: {IdWithHolding, mailsSend} }).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n}\r\n\r\nexport default Reports ","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\n\r\nconst RESOURCE = `/Dashboards`\r\n\r\nconst Dashboards = {\r\n get: () =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}`).then(response => {\r\n if(response && response.status===200) return response.data\r\n }),\r\n}\r\n\r\nexport default Dashboards","import requests from './Setup'\r\nimport membershipsStore from 'stores/membershipsStore'\r\n\r\nconst RESOURCE = `/Settings`\r\n\r\nconst Reports = {\r\n //responseType: 'blob' necesario para la interpretación correcta del PDF\r\n changeCorrelativeWithholding: (newCorrelative: number) =>\r\n requests.get(`${membershipsStore.serviceUrl+RESOURCE}/ChangeCorrelativeWithholding/${newCorrelative}`).then(response => {\r\n if (response && response.status === 200) return response.data\r\n }),\r\n}\r\n\r\nexport default Reports ","import React, { useState, useEffect } from 'react'\r\nimport { Modal, Form, Button, InputGroup } from 'react-bootstrap'\r\nimport { useForm } from 'react-hook-form'\r\nimport { useTranslation } from 'react-i18next'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport { inject, observer } from 'mobx-react'\r\nimport defaultValues from 'Constants/DefaultValues';\r\nimport apiService from 'Service'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport * as yup from 'yup';\r\n\r\nconst AddMembershipOrCompany = ({ parentShowState,\r\n parentClose,\r\n isForMembership,\r\n isForDemo,\r\n membershipName = '',\r\n membershipsStore }) => {\r\n\r\n\r\n const validationSchema = yup.object().shape({\r\n Name: yup.string().required(),\r\n DocumentType: yup.string().required(),\r\n RIF: yup.string().numbers().min(8).max(9).required(),\r\n FiscalAddress: yup.string().required(),\r\n Address: yup.string().required(),\r\n Phone: yup.string().required(),\r\n Celular: yup.string().required(),\r\n PeopleContact: yup.string().required(),\r\n IdCountry: yup.string().required(),\r\n })\r\n\r\n const [countries, setCountries] = useState([])\r\n const [isLoading, setIsLoading] = useState(true)\r\n\r\n useEffect(() => {\r\n if (countries.length === 0) {\r\n setIsLoading(true)\r\n apiService.Countries.get().then(countries => {\r\n if (countries) setCountries(countries)\r\n }).finally(() => setIsLoading(false))\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n useEffect(() => {\r\n if (parentShowState === true) {\r\n\r\n if (isForDemo) membershipsStore.initProcess(defaultValues.demoMembership)\r\n }\r\n }, [parentShowState, membershipsStore, isForDemo])\r\n\r\n const { t } = useTranslation()\r\n const { register, handleSubmit, errors, setValue, reset } = useForm({ validationSchema: validationSchema });\r\n\r\n function handleModalClose() {\r\n parentClose()\r\n }\r\n\r\n function onSubmit(data) {\r\n if (isForDemo) {\r\n data.RIF = data.DocumentType + data.RIF\r\n membershipsStore.updateLocalMembershipState(data)\r\n membershipsStore.sendDemoRequest().then(() => {\r\n alert(t('demo_activated_successfully'))\r\n reset()\r\n handleModalClose()\r\n })\r\n }\r\n }\r\n\r\n return (\r\n\r\n \r\n\r\n\r\n\r\n
\r\n
\r\n \r\n {isForDemo ? t('activate_demo') : isForMembership ? t('add_membership') : t('add_company')}\r\n \r\n {isLoading && \r\n \r\n }\r\n\r\n {!isLoading && !countries.length &&\r\n

{t('unable_to_load_countries')}

\r\n }\r\n {!isLoading && countries.length > 0 &&\r\n <>\r\n \r\n \r\n {t('legal_name')}\r\n \r\n \r\n \r\n \r\n {t('legal_identification')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('fiscal_address')}\r\n setValue('Address', e.target.value)}\r\n />\r\n \r\n \r\n \r\n {t('physical_address')}\r\n \r\n \r\n \r\n \r\n {t('phone')}\r\n \r\n \r\n \r\n \r\n {t('celular')}\r\n \r\n \r\n \r\n \r\n {t('contact_person')}\r\n \r\n \r\n \r\n \r\n {t('country')}\r\n \r\n {countries.map(country => {\r\n return {country.CountryName}\r\n })}\r\n \r\n \r\n \r\n \r\n \r\n {membershipsStore.isLoading &&\r\n
\r\n \r\n
\r\n }\r\n {!membershipsStore.isLoading && <>\r\n \r\n \r\n }\r\n
\r\n \r\n }\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default inject('membershipsStore')(observer(AddMembershipOrCompany))","import React from 'react'\r\nimport { useForm } from \"react-hook-form\";\r\nimport { Modal, Form, Button } from 'react-bootstrap'\r\n\r\n\r\nconst InvitationModal = ({ toCompany, parentShowState, parentClose }) => {\r\n const { register, handleSubmit } = useForm();\r\n const onSubmit = data => {\r\n\r\n };\r\n\r\n function hanldeModalClose(){\r\n parentClose()\r\n }\r\n\r\n return (\r\n \r\n \r\n Invitar\r\n \r\n \r\n
\r\n \r\n Correo\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n )\r\n}\r\n\r\nexport default InvitationModal","import React, { useState } from 'react'\r\nimport { Container, Row, Col, Button } from 'react-bootstrap';\r\nimport { inject, observer } from 'mobx-react';\r\nimport { withRouter } from 'react-router-dom'\r\nimport { DASHBOARD, INVOICES_ADD } from \"Constants/Routes\";\r\nimport AddMembershipOrCompany from './AddMembershipOrCompany'\r\nimport InvitationModal from 'Components/Modals/InvitationModal'\r\nimport useTitle from 'hooks/useTitle'\r\nimport { useTranslation } from 'react-i18next'\r\n\r\nconst CompanySelection = ({ companyStore, authStore, history }) => {\r\n useTitle('company_selection')\r\n\r\n const { t } = useTranslation()\r\n\r\n // Datos para el control de la ventana modal de creacion de membresia/compañia\r\n const [showCompanyRegModal, setShowCompanyRegModal] = useState(false)\r\n const [modalIsForMembership, setModalIsForMembership] = useState(false)\r\n const [modalIsForDemo, setModalIsForDemo] = useState(false)\r\n const [modalMembershipName, setModalMembershipName] = useState('')\r\n \r\n\r\n //Control del modal de invitación\r\n const [showInvitationModal, setShowInvitationModal] = useState(false)\r\n const [inviteToCompany, setInviteToCompany] = useState('') // Id Compañia\r\n\r\n // Eventos modal de cracion de compañia/membresia\r\n function closeCompanyModal() {\r\n setShowCompanyRegModal(false)\r\n }\r\n\r\n // Events modal de invitación\r\n // eslint-disable-next-line no-unused-vars\r\n function openInvitationModal(companyID) {\r\n setInviteToCompany(companyID)\r\n setShowInvitationModal(true)\r\n }\r\n\r\n function closeInvitationModal() {\r\n setShowInvitationModal(false)\r\n }\r\n\r\n // Renderizado de Membresias y Compañias...\r\n function renderMembership(membership, isThirdCompany) {\r\n return (\r\n
\r\n

{membership.BusinessName}

\r\n {membership.Companies.map(company => {\r\n return renderCompany(company, isThirdCompany)\r\n })}\r\n {/* Dibujar boton para agregar compañia solo en membresias propias */}\r\n {isThirdCompany === false &&\r\n \r\n \r\n {/* \r\n \r\n */}\r\n \r\n }\r\n
\r\n )\r\n }\r\n\r\n function renderCompany(company, isThirdCompany) {\r\n return (\r\n
\r\n
\r\n \r\n \r\n

{company.BusinessName}

\r\n \r\n \r\n {company.Rif}\r\n \r\n \r\n handleCompanySelecion(company, isThirdCompany)}>\r\n {t('select')}\r\n \r\n \r\n \r\n {/* Boton de invitar para compañias propias */}\r\n {/* {isThirdCompany === false &&\r\n \r\n } */}\r\n \r\n {/* X */}\r\n
\r\n
\r\n
\r\n )\r\n }\r\n\r\n function handleCompanySelecion(company, isThirdCompany) {\r\n companyStore.setSelectedCompany(company, isThirdCompany)\r\n isThirdCompany ? history.push(INVOICES_ADD) : history.push(DASHBOARD);\r\n\r\n }\r\n\r\n function prepareMembershipCompanyModal(){\r\n setModalIsForMembership(true)\r\n setModalMembershipName('')\r\n setModalIsForDemo(false)\r\n }\r\n\r\n function showModalForDemo() {\r\n prepareMembershipCompanyModal()\r\n setModalIsForMembership(true)\r\n setModalIsForDemo(true)\r\n setShowCompanyRegModal(true)\r\n }\r\n\r\n return (\r\n \r\n
\r\n authStore.logout()} style={{ fontSize: \"22px\" }} />\r\n
\r\n \r\n \r\n

{t('own')}

\r\n {companyStore.ownCompanies.length === 0 &&\r\n
\r\n \r\n
\r\n }\r\n {companyStore.ownCompanies.length > 0 &&\r\n companyStore.ownCompanies.map(membership => {\r\n return renderMembership(membership, false)\r\n })}\r\n \r\n \r\n

{t('third_parties')}

\r\n {companyStore.thirdPartyCompanies.length === 0 &&\r\n

{t('not_yet_invited_to_third_party')}

\r\n }\r\n {companyStore.thirdPartyCompanies.length > 0 &&\r\n companyStore.thirdPartyCompanies.map(membership => {\r\n return
\r\n {renderMembership(membership, true)}\r\n
\r\n })}\r\n \r\n
\r\n {/* */}\r\n\r\n \r\n \r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"companyStore\", \"authStore\")(observer(withRouter(CompanySelection)))","import React from 'react'\r\nimport { Form, Button, Row, Col } from 'react-bootstrap'\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useTranslation } from 'react-i18next';\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport { observer } from 'mobx-react'\r\nimport * as yup from 'yup';\r\nimport useStores from 'hooks/useStores'\r\n\r\n\r\nconst ProviderInformationFormNew = ({ nextStep, previous }) => {\r\n const { t } = useTranslation();\r\n\r\n const { providersStore } = useStores()\r\n\r\n\r\n const validationSchema = yup.object().shape({\r\n Rif: yup.string(),\r\n BusinessName: yup.string().required(),\r\n FiscalAddress: yup.string().required(),\r\n Email: yup.string().email(),\r\n PhoneNumber: yup.string().numbers(),\r\n WithholdingPercentageIVA: yup.number().min(0).max(100),\r\n WithholdingPercentageISLR: yup.number().min(0).max(100),\r\n });\r\n\r\n const { register, handleSubmit, errors, formState } = useForm({ validationSchema: validationSchema });\r\n const {dirty} = formState\r\n\r\n const onSubmit = data => {\r\n if (providersStore.providerExists) {\r\n if (dirty) {\r\n providersStore.updateProvider(data).then(res => {\r\n if (res) nextStep()\r\n })\r\n }else{\r\n nextStep()\r\n }\r\n } else {\r\n providersStore.addProvider(data).then(res => {\r\n if (res) nextStep()\r\n })\r\n }\r\n };\r\n\r\n\r\n function handlePrevious() {\r\n previous();\r\n }\r\n\r\n return (\r\n
\r\n
{t('provider_data')}
\r\n
\r\n \r\n RIF:\r\n \r\n \r\n \r\n \r\n Razon Social:\r\n \r\n \r\n \r\n \r\n Dirección:\r\n \r\n \r\n \r\n \r\n {t('email')}:\r\n \r\n \r\n \r\n \r\n Número de teléfono:\r\n \r\n \r\n \r\n \r\n Porcentaje de Retencion:\r\n \r\n \r\n \r\n {/* \r\n Porcentaje ISLR:\r\n \r\n \r\n */}\r\n \r\n \r\n \r\n {providersStore.isLoading\r\n ? \r\n : <>\r\n \r\n {previous &&\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n }\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default observer(ProviderInformationFormNew)","import TransformDateTime from './TransformDateTime'\r\nimport TransformDate from './TransformDate'\r\nimport CurrentDate from './CurrentDate'\r\nimport FormatCurrency from './FormatCurrency'\r\n\r\nexport default {\r\n TransformDateTime,\r\n TransformDate,\r\n CurrentDate,\r\n FormatCurrency\r\n}","// Devulve el datetime como un string\r\n// con formato entendible y añadiendo\r\n// AM o PM a la hora\r\nconst TransformDateTime = datetime => {\r\n const date = new Date(datetime);\r\n\r\n let dd = date.getDate();\r\n let mm = date.getMonth() + 1; //Enero es 0!\r\n const yyyy = date.getFullYear();\r\n\r\n if (dd < 10) {\r\n dd = '0' + dd\r\n }\r\n\r\n if (mm < 10) {\r\n mm = '0' + mm\r\n }\r\n const strDate = dd + '/' + mm + '/' + yyyy;\r\n\r\n let hours = date.getHours();\r\n let minutes = date.getMinutes();\r\n let ampm = hours >= 12 ? 'PM' : 'AM';\r\n hours = hours % 12;\r\n hours = hours ? hours : 12; // 12 de la noche es 0!!!\r\n minutes = minutes < 10 ? '0'+minutes : minutes;\r\n const strTime = hours + ':' + minutes + ' ' + ampm;\r\n \r\n return strDate+' '+strTime;\r\n}\r\n\r\nexport default TransformDateTime","// Devulve el date como un string\r\n// con formato entendible, sin hora.\r\nconst TransformDate = datetime => {\r\n console.log(\"transformando\")\r\n const date = new Date(datetime);\r\n\r\n let dd = date.getDate();\r\n let mm = date.getMonth() + 1; //Enero es 0!\r\n const yyyy = date.getFullYear();\r\n\r\n if (dd < 10) {\r\n dd = '0' + dd\r\n }\r\n\r\n if (mm < 10) {\r\n mm = '0' + mm\r\n }\r\n const strDate = dd + '/' + mm + '/' + yyyy;\r\n \r\n return strDate;\r\n}\r\n\r\nexport default TransformDate","// Devulve la fecha actual en un formato valido \r\n// para los de tipo Date\r\nconst CurrentDate = (format = 'yyyy-mm-dd') => {\r\n const today = new Date();\r\n let dd = today.getDate();\r\n let mm = today.getMonth() + 1; //Enero es 0!\r\n const yyyy = today.getFullYear();\r\n\r\n if (dd < 10) {\r\n dd = '0' + dd\r\n }\r\n\r\n if (mm < 10) {\r\n mm = '0' + mm\r\n }\r\n\r\n let currentDate\r\n switch (format) {\r\n case 'yyyy-mm-dd':\r\n currentDate = yyyy + '-' + mm + '-' + dd;\r\n break;\r\n case 'dd-mm-yyyy':\r\n currentDate = dd + '-' + mm + '-' + yyyy;\r\n break;\r\n default:\r\n currentDate = yyyy + '-' + mm + '-' + dd;\r\n break;\r\n }\r\n\r\n return currentDate\r\n};\r\n\r\nexport default CurrentDate","// Existe un \"bug\" en Intl que hace que al formatear numeros de 4\r\n// digitos usando el locale \"es\" el formateo sea incorrecto, ya no se incluye\r\n// el punto que separa los miles\r\n\r\n// Ejemplo:\r\n//\r\n// Formatear 1000 \r\n// Intl.NumberFormat(\"es-VE\",{minimumFractionDigits:2}).format(1000)\r\n// \r\n// Resultado: \"1000,00\"\r\n// Esperado: \"1.000,00\"\r\n//\r\n// Por eso se hace uso del locale \"de-DE\" que emplea los mismos simbolos para \r\n// miles y decimales que el \"es\"\r\n\r\n// 16/08/2021: Cambiar la implementación de Intl por algo menos rebuscado y con màs\r\n// compatibilidad con navegadores antiguos.\r\n \r\nconst FormatCurrency = value =>{\r\n return new Intl.NumberFormat(\"de-DE\",{minimumFractionDigits:2}).format(value)\r\n}\r\n\r\nexport default FormatCurrency","import React from 'react'\r\nimport Utilities from 'Utilities'\r\n\r\nconst AmountRow = ({ amount, deleteAmountEntry }) => {\r\n\r\n function handleDelete() {\r\n deleteAmountEntry(amount.Row)\r\n }\r\n\r\n return \r\n {Utilities.FormatCurrency(amount.TaxBase)}\r\n {amount.TaxPorcentage}%\r\n {Utilities.FormatCurrency(amount.TaxAmmount)}\r\n {Utilities.FormatCurrency(amount.TaxFree)}\r\n {Utilities.FormatCurrency(amount.TotalAmmount)}\r\n \r\n \r\n \r\n \r\n}\r\n\r\nexport default AmountRow","import React from 'react'\r\nimport { Row, Col } from 'react-bootstrap'\r\nimport { observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport Utilities from 'Utilities'\r\nimport 'Styles/MobileCard.scss'\r\n\r\nconst AmountCard = ({ amount, deleteAmountEntry }) => {\r\n const { t } = useTranslation();\r\n\r\n function handleDelete() {\r\n deleteAmountEntry(amount.Row)\r\n }\r\n\r\n return \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n {t('base') + ': '}\r\n {Utilities.FormatCurrency(amount.TaxBase)}\r\n
\r\n \r\n {t('vat_percentage') + ': '}\r\n {amount.TaxPorcentage}%\r\n
\r\n \r\n {t('vat_amount') + ': '}\r\n {Utilities.FormatCurrency(amount.TaxAmmount)}\r\n
\r\n \r\n {t('exempt_amount') + ': '}\r\n {Utilities.FormatCurrency(amount.TaxFree)}\r\n
\r\n \r\n {t('total') + ': '}\r\n {Utilities.FormatCurrency(amount.TotalAmmount)}\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n}\r\n\r\nexport default observer(AmountCard)","import React from 'react'\r\nimport { Table, Row } from 'react-bootstrap'\r\nimport { observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { Responsive } from 'responsive-react'\r\nimport AmountRow from './AmountRow'\r\nimport AmountCard from './AmountCard'\r\nimport useStores from 'hooks/useStores'\r\n\r\nconst AmountsSection = () => {\r\n const { t } = useTranslation();\r\n\r\n const {invoicesStore} =useStores()\r\n\r\n function deleteAmountEntry(row) {\r\n const res = window.confirm(t('do_you_really_want_to_remove_this_amount?'))\r\n if (res) invoicesStore.deleteAmount(row)\r\n }\r\n\r\n if (invoicesStore.amounts.length) {\r\n return <>\r\n

{t('registered_amounts')}

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {invoicesStore.amounts.map(amount => {\r\n return \r\n })}\r\n \r\n
{t('base')}{t('vat_percentage')}{t('vat_amount')}{t('exempt_amount')}{t('total')}{t('action')}
\r\n
\r\n \r\n \r\n {invoicesStore.amounts.map(amount => {\r\n return \r\n })}\r\n \r\n \r\n \r\n }\r\n\r\n return
\r\n

{t('no_amounts_registered_yet')}

\r\n
\r\n}\r\n\r\nexport default observer(AmountsSection)","import React, { useState } from 'react'\r\nimport { Form, Button, Row, Col } from 'react-bootstrap'\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { observer } from 'mobx-react';\r\nimport { useTranslation } from 'react-i18next'\r\nimport vlMessages from 'Constants/ValidationMessages'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport * as yup from 'yup';\r\nimport CurrencyInput from 'react-currency-input-field';\r\nimport numeral from 'numeral'\r\nimport Utilities from 'Utilities'\r\n/**\r\n * 16/08/2021: el import de numeral/locales/es es muy importante, no borrar.\r\n * si es posible buscar una alternativa a Numeral Js\r\n */\r\nimport 'numeral/locales/es'\r\nimport useStores from 'hooks/useStores';\r\nnumeral.locale('es')\r\n\r\n\r\nconst FormSection = ({ backToListHandler }) => {\r\n\r\n const { t } = useTranslation();\r\n \r\n const {invoicesStore, configurationStore, uiStore} = useStores()\r\n\r\n const validationSchema = yup.object().shape({\r\n TaxBase: yup.string(),\r\n })\r\n\r\n const { register, handleSubmit, errors, reset, setValue, getValues, control } = useForm({ validationSchema: validationSchema });\r\n\r\n // Si el usuario retrocede, se mantienen los montos y al volver a este forumario\r\n // se debe determinar cual fue el id más alto asignado anteriormente\r\n const [idCounter, setIdCounter] = useState(\r\n invoicesStore.amounts.length ? Math.max.apply(Math, invoicesStore.amounts.map(function (amount) { return amount.Row + 1; })) : 1)\r\n\r\n // Controla que no se muestre el resto del formulario\r\n // hasta que se seleccione un impuesto valido\r\n const [isValidSelectedTax, setIsValidSelectedTax] = useState(false)\r\n\r\n // Para el calculo automatico\r\n const [totalTax, setTotalTax] = useState(0)\r\n const [totalAmount, setTotalAmount] = useState(0)\r\n\r\n function onAmountSubmit(data) {\r\n data = {\r\n TaxType: parseInt(data.TaxType),\r\n TaxPorcentage: parseFloat(data.TaxPorcentage),\r\n TaxBase: numeral(data.TaxBase).value(),\r\n IdInvoice: '',\r\n Row: idCounter,\r\n TaxAmmount: numeral(totalTax).value(),\r\n TotalAmmount: numeral(totalAmount).value(),\r\n TaxFree: parseInt(data.TaxPorcentage) === 0 ? numeral(totalAmount).value() : 0,\r\n Discount: 0,\r\n }\r\n\r\n invoicesStore.addAmount(data)\r\n uiStore.addNotification(uiStore.appNotifications.SUCCESS_ADDED)\r\n setIdCounter(idCounter + 1)\r\n reset()\r\n backToListHandler()\r\n }\r\n\r\n function handleTaxTypeChange(e) {\r\n setIsValidSelectedTax(true)\r\n setHiddenTaxPorcentageValue(e.target.value)\r\n calculateTaxandTotal(getValues('TaxBase'))\r\n }\r\n\r\n function setHiddenTaxPorcentageValue(taxTypeId) {\r\n const value = configurationStore.taxes.find(x => x.Id === parseInt(taxTypeId)).Value\r\n if (!value) {\r\n setValue('TaxPorcentage', 0)\r\n }\r\n setValue('TaxPorcentage', value)\r\n }\r\n\r\n // el valor va etre [] porque react-hooks-form control este input\r\n function handleTaxBaseChange([value]) {\r\n calculateTaxandTotal(value)\r\n return value\r\n }\r\n\r\n function calculateTaxandTotal(base) {\r\n const tempTotalTax = Utilities.FormatCurrency(numeral(base).value() * (getValues('TaxPorcentage') / 100))\r\n const tempTotalAmount = Utilities.FormatCurrency(numeral(base).value() + numeral(tempTotalTax).value())\r\n setTotalTax(only2Decimals(tempTotalTax))\r\n setTotalAmount(only2Decimals(tempTotalAmount))\r\n }\r\n \r\n\r\n function handleTotalTaxChange(e) {\r\n setTotalTax(e)\r\n calculateTotalFromTaxChange(e)\r\n }\r\n\r\n function calculateTotalFromTaxChange(tax) {\r\n const tempTotalAmount = Utilities.FormatCurrency(numeral(getValues('TaxBase')).value() + numeral(tax).value())\r\n setTotalAmount(only2Decimals(tempTotalAmount))\r\n }\r\n\r\n function handleTotalAmountChange(e) {\r\n setTotalAmount(e)\r\n }\r\n\r\n function only2Decimals(value){\r\n return numeral(value).format('0.00')\r\n }\r\n\r\n return (\r\n
\r\n {t('amount_information')}\r\n \r\n {t('vat_type')}:\r\n \r\n \r\n \r\n {configurationStore.taxes.map(tax => {\r\n return \r\n })}\r\n \r\n \r\n \r\n \r\n {isValidSelectedTax && <>\r\n \r\n {t('tax_base')}\r\n \r\n \r\n \r\n\r\n \r\n {t('vat')}\r\n \r\n \r\n \r\n \r\n {t('total')}\r\n \r\n \r\n }\r\n\r\n \r\n \r\n \r\n {t('back')}\r\n \r\n \r\n \r\n \r\n {t('add')}\r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default observer(FormSection)","import React from 'react'\r\nimport { Button, Row, Col } from 'react-bootstrap'\r\nimport { observer } from 'mobx-react';\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport useStores from 'hooks/useStores';\r\n\r\ntype ButtonsSectionPropsTypes = {\r\n handleSave: () => void\r\n handlePrevious: () => void\r\n cancel?: () => void\r\n}\r\n\r\nconst ButtonsSection = ({ handleSave, handlePrevious, cancel }: ButtonsSectionPropsTypes) => {\r\n const { t } = useTranslation();\r\n\r\n const { invoicesStore } = useStores()\r\n\r\n if (invoicesStore.isLoading) return \r\n\r\n return (<>\r\n \r\n {cancel &&\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default observer(ButtonsSection)","import React, { useState } from 'react'\r\nimport { observer } from 'mobx-react';\r\nimport { useTranslation } from 'react-i18next'\r\nimport AmountsSection from './AmountsSection'\r\nimport FormSection from './FormSection'\r\nimport ButtonsSection from './ButtonsSection'\r\nimport { Button } from 'react-bootstrap'\r\nimport useStores from 'hooks/useStores'\r\n\r\n\r\nconst STEPS = {\r\n LIST: 1,\r\n ADD_AMOUNT: 2\r\n}\r\n\r\ntype AmountsFormPropsType = {\r\n nextStep: () => void\r\n previous?: () => void\r\n cancel?: () => void\r\n}\r\n\r\nconst AmountsForm = ({ nextStep, previous, cancel } : AmountsFormPropsType) => {\r\n const { t } = useTranslation();\r\n const [step, setStep] = useState(1)\r\n\r\n const { invoicesStore } = useStores()\r\n\r\n \r\n function handlePrevious() {\r\n if(previous) previous();\r\n }\r\n\r\n function handleSave() {\r\n invoicesStore.amounts.length\r\n ? nextStep()\r\n : alert(t('you_must_register_at_least_one_amount'))\r\n }\r\n\r\n function handleAddAmountButton() {\r\n setStep(STEPS.ADD_AMOUNT)\r\n }\r\n\r\n function handleBackToListButton() {\r\n setStep(STEPS.LIST)\r\n }\r\n\r\n return (\r\n
\r\n
{t('invoice_details')}
\r\n\r\n {step === STEPS.LIST && <>\r\n \r\n \r\n
\r\n\r\n \r\n \r\n }\r\n\r\n {step === STEPS.ADD_AMOUNT && <>\r\n \r\n }\r\n
\r\n )\r\n}\r\n\r\nexport default observer(AmountsForm)","import React from 'react'\r\nimport { DateInput } from \"@blueprintjs/datetime\";\r\nimport moment from \"moment\";\r\nimport './index.css'\r\nimport MomentLocaleUtils from \"react-day-picker/moment\";\r\nimport \"moment/locale/es\";\r\n\r\nexport default (props) =>{\r\n let value = null\r\n if(props.value){\r\n value = new Date(props.value)\r\n }\r\n\r\n return {\r\n return moment(date).format('DD/MM/yyyy')\r\n }}\r\n parseDate={str => {\r\n return new Date(str)\r\n }}\r\n placeholder={\"dd/mm/aaaa\"}\r\n locale=\"es\" localeUtils={MomentLocaleUtils}\r\n {...props}\r\n value={value}\r\n />\r\n}","/**\r\n * TODO:\r\n * Validar que no existas otra facturas con el mismo número\r\n * para el mismo proveedor\r\n */\r\n\r\nimport React from 'react'\r\nimport { Form, Button, Col, Row } from 'react-bootstrap'\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { observer } from 'mobx-react';\r\nimport { useTranslation } from 'react-i18next'\r\nimport vlMessages from 'Constants/ValidationMessages'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport * as yup from 'yup'\r\nimport DatePicker from 'Components/DatePicker'\r\nimport useStores from 'hooks/useStores'\r\n\r\ntype InvoiceInformationNewPropsType = {\r\n nextStep: () => void,\r\n previous?: () => void,\r\n cancel?: () => void\r\n}\r\n\r\nconst InvoiceInformationNew = ({ nextStep, previous, cancel }: InvoiceInformationNewPropsType) => {\r\n const { t } = useTranslation();\r\n\r\n const { invoicesStore, configurationStore } = useStores()\r\n\r\n\r\n const validationSchema = yup.object().shape({\r\n EmitDate: yup.date().required(),\r\n Serie: yup.string(),\r\n InvoiceNumber: yup.string().required().numbers(),\r\n ControlNumber: yup.string(),\r\n IdDocumentType: yup.string().required().numbers(),\r\n });\r\n\r\n const { register, handleSubmit, errors, control } = useForm({ validationSchema: validationSchema });\r\n\r\n const onSubmit = (data: any) => {\r\n\r\n invoicesStore.updateInvoiceState(data)\r\n nextStep()\r\n };\r\n\r\n function handlePrevious() {\r\n if (previous) previous();\r\n }\r\n\r\n return (\r\n
\r\n
{t('invoice_data')}
\r\n \r\n {t('date')}:\r\n \r\n \r\n \r\n \r\n {t('serie')}:\r\n \r\n \r\n \r\n \r\n {t('invoice_number')}:\r\n \r\n \r\n \r\n \r\n {t('control_number')}:\r\n \r\n \r\n \r\n {/* \r\n {t('operation_type')}:\r\n \r\n {configurationStore.operationsType.map(opType => {\r\n return {opType.Description}\r\n })}\r\n \r\n \r\n */}\r\n \r\n \r\n {t('document_type')}\r\n \r\n {configurationStore.documentsType!.map(dcType => {\r\n return \r\n })}\r\n \r\n \r\n \r\n \r\n {previous &&\r\n \r\n \r\n \r\n }\r\n {cancel &&\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default observer(InvoiceInformationNew)","import React, { useEffect } from 'react'\r\nimport { Form, Button, Row, Col, InputGroup } from 'react-bootstrap'\r\nimport { useForm } from \"react-hook-form\";\r\nimport { useTranslation } from 'react-i18next';\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport { observer } from 'mobx-react'\r\nimport * as yup from 'yup';\r\nimport useStores from 'hooks/useStores'\r\n\r\n\r\nconst IdentificationLookup = ({ nextStep }) => {\r\n const { t } = useTranslation();\r\n\r\n const { providersStore } = useStores()\r\n\r\n \r\n const validationSchema = yup.object().shape({\r\n DocumentType: yup.string().required(),\r\n Rif: yup.string().numbers().min(8).max(9).required(),\r\n });\r\n\r\n const { register, handleSubmit, errors, reset } = useForm({ validationSchema: validationSchema });\r\n const onSubmit = data => {\r\n const fullIdentification = data.DocumentType + data.Rif\r\n providersStore.identificationLookup(fullIdentification).then(res => {\r\n if (res === true) nextStep()\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n reset()\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n return (\r\n
\r\n
{t('provider_lookup')}
\r\n
\r\n \r\n RIF:\r\n
\r\n \r\n \r\n {t('insert_provider_indentification_message')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {providersStore.isLoading\r\n ? \r\n : <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default observer(IdentificationLookup)","import React, { useState, useEffect } from 'react'\r\nimport { Prompt } from 'react-router-dom'\r\nimport {\r\n ProviderInformationForm,\r\n IdentificationLookup,\r\n InvoiceInformation,\r\n AmountsForm\r\n} from 'Components/Forms'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle'\r\n\r\nconst STEPS = {\r\n PROVIDER_LOOKUP: 1,\r\n PROVIDER_INFORMATION: 2,\r\n INVOICE_INFORMATION: 3,\r\n AMOUNTS_LIST: 4,\r\n ADD_AMOUNT: 5\r\n}\r\n\r\nconst InvoiceRegister = ({ providersStore,invoicesStore }) => {\r\n const { t } = useTranslation();\r\n useTitle('registering_invoice')\r\n\r\n useEffect(() => {\r\n providersStore.initProcess()\r\n invoicesStore.initProcess()\r\n return () => {\r\n // Limpiar estados al salir\r\n providersStore.clear()\r\n invoicesStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n const [step, setStep] = useState(STEPS.PROVIDER_LOOKUP)\r\n\r\n function nextStep() {\r\n switch (step) {\r\n case STEPS.PROVIDER_LOOKUP:\r\n setStep(STEPS.PROVIDER_INFORMATION)\r\n break;\r\n case STEPS.PROVIDER_INFORMATION:\r\n setStep(STEPS.INVOICE_INFORMATION)\r\n break;\r\n case STEPS.INVOICE_INFORMATION:\r\n setStep(STEPS.AMOUNTS_LIST)\r\n break;\r\n case STEPS.AMOUNTS_LIST:\r\n sendData()\r\n break;\r\n default:\r\n break;\r\n }\r\n if(step !== 4){\r\n window.scrollTo(0,1)\r\n }\r\n }\r\n\r\n function sendData(){\r\n invoicesStore.postNewCompleteDocument().then(res=>{\r\n if(res){\r\n alert(t('invoice_registered_successfully'))\r\n window.location.reload()\r\n }\r\n })\r\n }\r\n\r\n function previous() {\r\n switch (step) {\r\n case STEPS.PROVIDER_INFORMATION:\r\n providersStore.resetProcess()\r\n setStep(STEPS.PROVIDER_LOOKUP)\r\n break;\r\n case STEPS.INVOICE_INFORMATION:\r\n setStep( STEPS.PROVIDER_INFORMATION)\r\n break;\r\n case STEPS.AMOUNTS_LIST:\r\n setStep(STEPS.INVOICE_INFORMATION)\r\n break;\r\n default:\r\n break;\r\n }\r\n window.scrollTo(0,1)\r\n }\r\n\r\n return (\r\n
\r\n\r\n

{t('registering_invoice')}

\r\n {step === STEPS.PROVIDER_LOOKUP &&\r\n \r\n }\r\n\r\n {step === STEPS.PROVIDER_INFORMATION &&\r\n \r\n }\r\n\r\n {step === STEPS.INVOICE_INFORMATION &&\r\n }\r\n\r\n {step === STEPS.AMOUNTS_LIST &&\r\n }\r\n\r\n STEPS.PROVIDER_LOOKUP}\r\n message={t('do_you_really_want_to_quit_the_process')}\r\n />\r\n\r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"providersStore\",\"invoicesStore\")(observer(InvoiceRegister))","import React, { useState, useEffect } from 'react'\r\nimport { Prompt } from 'react-router-dom'\r\nimport {\r\n AmountsForm\r\n} from 'Components/Forms'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle';\r\nimport useStores from 'hooks/useStores';\r\n\r\nenum STEPS {\r\n AMOUNTS_LIST,\r\n ADD_AMOUNT,\r\n}\r\n\r\nconst InvoiceEdit = () => {\r\n const { t } = useTranslation();\r\n\r\n const { providersStore, invoicesStore } = useStores()\r\n\r\n useTitle('editing_invoice')\r\n\r\n useEffect(() => {\r\n providersStore.initProcess()\r\n invoicesStore.initProcess()\r\n return () => {\r\n // Limpiar estados al salir\r\n providersStore.clear()\r\n invoicesStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n const [step, setStep] = useState(STEPS.AMOUNTS_LIST)\r\n\r\n function nextStep() {\r\n switch (step) {\r\n case STEPS.AMOUNTS_LIST:\r\n sendData()\r\n break;\r\n default:\r\n break;\r\n }\r\n if (step !== STEPS.AMOUNTS_LIST) {\r\n window.scrollTo(0, 1)\r\n }\r\n }\r\n\r\n function sendData() {\r\n invoicesStore.postNewCompleteDocument().then(res => {\r\n if (res) {\r\n alert(t('invoice_registered_successfully'))\r\n window.location.reload()\r\n }\r\n })\r\n }\r\n\r\n function previous() {\r\n /* switch (step) {\r\n case STEPS.PROVIDER_INFORMATION:\r\n providersStore.resetProcess()\r\n setStep(STEPS.PROVIDER_LOOKUP)\r\n break;\r\n case STEPS.INVOICE_INFORMATION:\r\n setStep(STEPS.PROVIDER_INFORMATION)\r\n break;\r\n case STEPS.AMOUNTS_LIST:\r\n setStep(STEPS.INVOICE_INFORMATION)\r\n break;\r\n default:\r\n break;\r\n } */\r\n window.scrollTo(0, 1)\r\n }\r\n\r\n return (\r\n
\r\n\r\n

{t('editing_invoice')}

\r\n {step === STEPS.AMOUNTS_LIST &&\r\n }\r\n\r\n STEPS.AMOUNTS_LIST}\r\n message={t('do_you_really_want_to_quit_the_process')}\r\n />\r\n\r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"providersStore\", \"invoicesStore\")(observer(InvoiceEdit))","import React from 'react'\r\nimport {Row, Col, Button} from 'react-bootstrap'\r\nimport './InvitationCard.css'\r\n\r\nconst InvitationCard = ({invitation}) => {\r\n return (\r\n
\r\n

Compañia: {invitation.company}

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n )\r\n}\r\n\r\nexport default InvitationCard","import React from 'react'\r\nimport { Link } from 'react-router-dom'\r\nimport { COMPANY_SELECTION } from \"../Constants/Routes\";\r\nimport InvitationCard from '../Components/InvitationCard'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Row, Col } from 'react-bootstrap'\r\n\r\nconst PendingInvitations = ({ CommonStore }) => {\r\n\r\n return (\r\n
\r\n

Invitations page

\r\n Saltar\r\n {CommonStore.invitations.length ?\r\n \r\n {CommonStore.invitations.map(invitation => {\r\n return \r\n \r\n \r\n })}\r\n \r\n :\r\n

No hay invitaciones pendientes por revisar

\r\n }\r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"CommonStore\")(observer(PendingInvitations))","import React, { useState, useEffect } from 'react'\r\nimport { AmountsForm, InvoiceInformation } from '../../../Components/Forms'\r\nimport { observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useStores from 'hooks/useStores'\r\nimport IInvoiceDocumentComplete from 'interfaces/service/Invoice/IInvoiceDocumentComplete';\r\n\r\nenum PURCHASE_REGISTRATION_STEPS {\r\n INVOICE_INFORMATION,\r\n AMOUNTS_INTRODUCTION\r\n}\r\n\r\ntype PruchaseRegistrationPropsTypes = {\r\n onPurchaseRegistered: (doc: IInvoiceDocumentComplete) => void\r\n setIsAddingInvoice: React.Dispatch>\r\n}\r\n\r\nconst PruchaseRegistration = ({ onPurchaseRegistered, setIsAddingInvoice }: PruchaseRegistrationPropsTypes) => {\r\n\r\n const [step, setStep] = useState(PURCHASE_REGISTRATION_STEPS.INVOICE_INFORMATION)\r\n const { t } = useTranslation();\r\n\r\n const { invoicesStore } = useStores()\r\n\r\n\r\n useEffect(() => {\r\n invoicesStore.initProcess()\r\n return () => {\r\n // Limpiar estados al salir\r\n invoicesStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n function previous() {\r\n switch (step) {\r\n case PURCHASE_REGISTRATION_STEPS.AMOUNTS_INTRODUCTION:\r\n setStep(PURCHASE_REGISTRATION_STEPS.INVOICE_INFORMATION)\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n function nextStep() {\r\n switch (step) {\r\n case PURCHASE_REGISTRATION_STEPS.INVOICE_INFORMATION:\r\n setStep(PURCHASE_REGISTRATION_STEPS.AMOUNTS_INTRODUCTION)\r\n break;\r\n case PURCHASE_REGISTRATION_STEPS.AMOUNTS_INTRODUCTION:\r\n sendData()\r\n break;\r\n default:\r\n break;\r\n }\r\n if (step !== PURCHASE_REGISTRATION_STEPS.AMOUNTS_INTRODUCTION) {\r\n window.scrollTo(0, 1)\r\n }\r\n }\r\n\r\n function backToWitholdingSelection() {\r\n setIsAddingInvoice(false)\r\n }\r\n\r\n function sendData() {\r\n invoicesStore.postNewCompleteDocument().then(res => {\r\n if (res) {\r\n alert(t('invoice_registered_successfully'))\r\n onPurchaseRegistered(res)\r\n setIsAddingInvoice(false)\r\n }\r\n })\r\n }\r\n\r\n return (\r\n
\r\n
\r\n

{t('adding_invoice')}

\r\n
\r\n
\r\n {step === PURCHASE_REGISTRATION_STEPS.INVOICE_INFORMATION &&\r\n }\r\n {step === PURCHASE_REGISTRATION_STEPS.AMOUNTS_INTRODUCTION &&\r\n }\r\n
\r\n
\r\n )\r\n}\r\nexport default observer(PruchaseRegistration)\r\n\r\n","import React from 'react'\r\nimport {useAccordionToggle} from 'react-bootstrap'\r\n\r\nconst CustomAcordionToggle = ({ children, eventKey }) => {\r\n const decoratedOnClick = useAccordionToggle(eventKey, () =>\r\n console.log(),\r\n );\r\n \r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n\r\n export default CustomAcordionToggle\r\n","import React from 'react'\r\nimport { Accordion, Card } from 'react-bootstrap'\r\n\r\nconst Body = ({children}) => \r\n \r\n \r\n {children}\r\n \r\n \r\n\r\nexport default Body","import React from 'react'\r\nimport { Col, Accordion, Card } from 'react-bootstrap'\r\nimport Header from './Header'\r\nimport Body from './Body'\r\n\r\n// Base para tarjeta usada en la version de movil o tablet.\r\nconst SAccordion = ({children, xs=12, sm=12, md=4, lg=4}) => {\r\n\r\n return (\r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nSAccordion.Header = Header\r\nSAccordion.Body = Body\r\n\r\nexport default SAccordion","import React from 'react'\r\nimport { Card, Row, Col } from 'react-bootstrap'\r\nimport CustomAccordionToggle from './CustomAcordionToggle'\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nconst Header = ({children}) => {\r\n const { t } = useTranslation();\r\n \r\n return (\r\n \r\n
\r\n <>\r\n {children}\r\n \r\n \r\n \r\n \r\n {t('details')}\r\n \r\n \r\n \r\n
\r\n
)\r\n};\r\n\r\nexport default Header","import React from 'react'\r\nimport { Row, Col } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next';\r\nimport SAcordion from 'Components/SAcordion'\r\nimport Utilities from 'Utilities';\r\nimport IInvoiceForDocumentSelection from 'interfaces/app/IInvoiceForDocumentSelection';\r\n\r\ntype DocumentCardPropsType = {\r\n document: IInvoiceForDocumentSelection,\r\n handleSelectionChange: (document: IInvoiceForDocumentSelection) => void\r\n}\r\n\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst DocumentCard = ({ document, handleSelectionChange}: DocumentCardPropsType) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {t('invoice_number')}: {document.Invoice.InvoiceNumber}

\r\n {t('total_amount')}: {document.CalculatedTotalAmount}\r\n
\r\n \r\n \r\n
\r\n { handleSelectionChange(document) }} />\r\n
\r\n \r\n
\r\n
\r\n \r\n {t('control_number')}: {document.Invoice.ControlNumber}

\r\n {t('serie')}: {document.Invoice.Serie}

\r\n {t('emit_date')}: {Utilities.TransformDate(document.Invoice.EmitDate)}

\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default DocumentCard","import React from 'react'\r\nimport './LoadingSpinnerAlt.scss'\r\n\r\nconst LoadingSpinnerAlt = ({ dimension = 30, percentage = false }) => {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default LoadingSpinnerAlt","import React, { useState } from 'react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport { OverlayTrigger, Tooltip } from 'react-bootstrap';\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt';\r\nimport useStores from 'hooks/useStores';\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument';\r\n\r\n\r\ntype ActionButtons = {\r\n invoice: IInvoiceDocument,\r\n}\r\n\r\nconst ActionButtons = ({ invoice }: ActionButtons) => {\r\n const { t } = useTranslation();\r\n\r\n const [isDeleting, setisDeleting] = useState(false)\r\n const { withholdingsStore } = useStores()\r\n\r\n async function handleDelete() {\r\n if (invoice.IdWithholding) {\r\n alert(t('this_invoice_is_part_of_a_withholding_and_cannot_be_deleted'))\r\n return\r\n }\r\n const confirmation = window.confirm(t('confirm_deletion'))\r\n if (confirmation) {\r\n try {\r\n setisDeleting(true)\r\n await withholdingsStore.deleteInvoice(invoice)\r\n\r\n } finally {\r\n setisDeleting(false)\r\n }\r\n }\r\n }\r\n return (\r\n <>\r\n {!invoice.IdWithholding && <>\r\n {isDeleting &&
\r\n \r\n
}\r\n {!isDeleting && \r\n {t('delete')}\r\n \r\n }\r\n >\r\n \r\n }\r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default ActionButtons","import React, { useState, useEffect, useRef } from 'react'\r\nimport { Button, Table, Row, Col } from 'react-bootstrap'\r\nimport PruchaseRegistration from '../PruchaseRegistration'\r\nimport Utilities from 'Utilities'\r\nimport { useTranslation } from 'react-i18next';\r\nimport DocumentCard from './DocumentCard'\r\nimport { Responsive } from 'responsive-react';\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { observer } from 'mobx-react'\r\nimport useStores from 'hooks/useStores'\r\nimport ActionButtons from './ActionButtons'\r\nimport IInvoiceDocumentComplete from 'interfaces/service/Invoice/IInvoiceDocumentComplete';\r\nimport IInvoiceForDocumentSelection from 'interfaces/app/IInvoiceForDocumentSelection';\r\n\r\ntype DocumentSelectionFormPropsTypes = {\r\n parentPrevious: () => void,\r\n nextStep: () => void\r\n}\r\n\r\nconst DocumentSelectionForm = ({ parentPrevious, nextStep }: DocumentSelectionFormPropsTypes) => {\r\n const { t } = useTranslation()\r\n\r\n const { withholdingsStore } = useStores()\r\n\r\n\r\n //Control de modal para agregar factura\r\n const [isAddingInvoice, setIsAddingInvoice] = useState(false)\r\n\r\n //Referencia para manejar el check de marcar/desmarcar todo\r\n const allStatusCheckbox = useRef(null)\r\n\r\n useEffect(() => {\r\n withholdingsStore.fetchPendingDocuments()\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n // Se desmarca el check de todos las selecciones si una de ellas\r\n // no está marcada\r\n useEffect(() => {\r\n if (allStatusCheckbox.current && !withholdingsStore.isLoading) {\r\n let allChecked = true\r\n withholdingsStore.pendingDocuments.forEach(document => {\r\n if (!document.Selected) allChecked = false\r\n })\r\n allStatusCheckbox.current.checked = allChecked\r\n }\r\n }, [withholdingsStore.pendingDocuments, withholdingsStore.isLoading]);\r\n\r\n function handleAllCheckboxControlChange(event: React.ChangeEvent) {\r\n let newState = withholdingsStore.pendingDocuments\r\n newState.forEach(document => document.Selected = event.target.checked)\r\n withholdingsStore.setPendingDocuments([...newState])\r\n }\r\n\r\n function handleSelectionChange(document: IInvoiceForDocumentSelection) {\r\n let newState = withholdingsStore.pendingDocuments;\r\n newState.forEach((pendingDocument) => {\r\n if (pendingDocument.Invoice.Id === document.Invoice.Id) {\r\n pendingDocument.Selected = !pendingDocument.Selected\r\n }\r\n })\r\n withholdingsStore.setPendingDocuments([...newState])\r\n }\r\n\r\n function handlePrevious() {\r\n const result = window.confirm(t('actual_selection_will_be_lost'))\r\n if (result) parentPrevious()\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n function handleModalClose() {\r\n const result = window.confirm(t('do_you_really_want_to_quit_the_process'))\r\n if (result) setIsAddingInvoice(false)\r\n\r\n }\r\n\r\n function onPurchaseRegistered(doc: IInvoiceDocumentComplete) {\r\n\r\n // Solo agregar el documento a la lista si tiene impuestos (determinado por el servicio)\r\n if (doc.IsNotWithholding) return;\r\n\r\n let total = 0\r\n doc.InvoiceDetails.forEach((invoiceDetail) => {\r\n total += invoiceDetail.TotalAmmount\r\n })\r\n\r\n\r\n\r\n const selectableDocument: IInvoiceForDocumentSelection = {\r\n ...doc,\r\n Selected: true,\r\n CalculatedTotalAmount: Utilities.FormatCurrency(total)\r\n }\r\n\r\n withholdingsStore.setPendingDocuments([\r\n ...withholdingsStore.pendingDocuments,\r\n selectableDocument\r\n ])\r\n }\r\n\r\n function generateWithholding() {\r\n let selectedDocuments = withholdingsStore.pendingDocuments.filter(doc => doc.Selected === true)\r\n if (selectedDocuments.length) {\r\n withholdingsStore.postNew(selectedDocuments).then(res => {\r\n if (res) {\r\n nextStep()\r\n\r\n }\r\n })\r\n } else {\r\n alert(t('you_must_select_at_leats_one_document'))\r\n }\r\n }\r\n\r\n function renderButtons() {\r\n return <>\r\n {withholdingsStore.isLoading\r\n ? \r\n : \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n \r\n }\r\n\r\n if (isAddingInvoice) {\r\n return \r\n }\r\n\r\n if (withholdingsStore.isLoading) return \r\n\r\n return (\r\n
\r\n
{t('documents_selection')}
\r\n {renderButtons()}\r\n\r\n {withholdingsStore.pendingDocuments.length === 0 &&\r\n
\r\n

{t('not_pending_invoices')}

\r\n
\r\n }\r\n\r\n {withholdingsStore.pendingDocuments.length > 0 &&\r\n <>\r\n {t('select_all')}

\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {withholdingsStore.pendingDocuments.map((document) => {\r\n return \r\n \r\n \r\n \r\n \r\n \r\n {}\r\n \r\n \r\n })}\r\n\r\n \r\n
Nro FacturaNro ControlSerieMonto TotalFechaSeleccionado{t('actions')}
{document.Invoice.InvoiceNumber}{document.Invoice.ControlNumber}{document.Invoice.Serie}{document.CalculatedTotalAmount}{Utilities.TransformDate(document.Invoice.EmitDate)} { handleSelectionChange(document) }} />
\r\n
\r\n \r\n \r\n\r\n {withholdingsStore.pendingDocuments.map((document) => {\r\n return \r\n })}\r\n \r\n\r\n \r\n
\r\n \r\n }\r\n
\r\n )\r\n}\r\n\r\nexport default observer(DocumentSelectionForm)","import React, { useEffect } from 'react'\r\nimport { Form, Button, Row, Col } from 'react-bootstrap'\r\nimport { observer } from 'mobx-react'\r\nimport { useForm, Controller } from \"react-hook-form\";\r\nimport { useTranslation } from 'react-i18next';\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport DatePicker from 'Components/DatePicker'\r\nimport * as yup from 'yup'\r\nimport { useHistory } from 'react-router-dom';\r\nimport useStores from 'hooks/useStores'\r\n\r\n\r\nconst WhithholdingInfoForm = ({ nextStep, previous }) => {\r\n const { t } = useTranslation();\r\n\r\n const { companyStore, withholdingsStore } = useStores()\r\n\r\n\r\n const validationSchema = yup.object().shape({\r\n Date: yup.date().required(),\r\n Correlative: yup.string().required(),\r\n ImpositivePeriod: yup.string().required()\r\n });\r\n\r\n const { register, handleSubmit, setValue, errors, control } = useForm({ validationSchema: validationSchema });\r\n const onSubmit = data => {\r\n withholdingsStore.updateWithholdingState(data)\r\n nextStep()\r\n };\r\n\r\n const history = useHistory()\r\n\r\n // Actualizar el correlativo y periodo imp la primera vez\r\n // solo cuando no vengan ya establecidos\r\n useEffect(() => {\r\n if (withholdingsStore.withholding.Correlative === undefined) {\r\n updateCorrelativeAndImpositive(withholdingsStore.withholding.Date)\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n function handlePrevious() {\r\n previous();\r\n }\r\n\r\n function handleDateChange([value]) {\r\n updateCorrelativeAndImpositive(value)\r\n return value\r\n }\r\n\r\n function updateCorrelativeAndImpositive(ymdDate) {\r\n const date = new Date(ymdDate)\r\n let month = date.getMonth() + 1 //Enero es 0!\r\n if (month < 10) month = '0' + month\r\n const year = date.getFullYear()\r\n setValue('Correlative', `${year}${month}${formatCorrelative()}`)\r\n setValue('ImpositivePeriod', `${year}${month}`)\r\n }\r\n\r\n function formatCorrelative() {\r\n let withZeros = '00000000' + companyStore.selectedCompany.Settings.WithholdingCorrelative\r\n return withZeros.substr(withZeros.length - 8);\r\n }\r\n\r\n function goToSettings(){\r\n const confirmation = window.confirm(t('want_to_go_to_configuration_page'))\r\n if(confirmation) history.push()\r\n }\r\n\r\n return (\r\n
\r\n
{t('witholding_data')}
\r\n \r\n {t('date')}:\r\n \r\n \r\n \r\n \r\n {t('correlative')}:\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {t('impositive_period')}:\r\n \r\n \r\n \r\n {withholdingsStore.isLoading\r\n ? \r\n : <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default observer(WhithholdingInfoForm)","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Form } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { Row, Col, Button } from 'react-bootstrap'\r\nimport { ReactMultiEmail, isEmail } from 'react-multi-email';\r\nimport 'react-multi-email/style.css';\r\n\r\n\r\nconst EmailSendForm = ({ emailSendModalStore }) => {\r\n const { t } = useTranslation()\r\n\r\n function onSubmit(e) {\r\n e.preventDefault()\r\n emailSendModalStore.send()\r\n }\r\n\r\n return (<>\r\n
\r\n
\r\n {\r\n emailSendModalStore.setEmails(_emails);\r\n }}\r\n validateEmail={email => {\r\n return isEmail(email); // return boolean\r\n }}\r\n getLabel={(\r\n email,\r\n index,\r\n removeEmail = (index) => { }\r\n ) => {\r\n return (\r\n
\r\n {email}\r\n removeEmail(index)}>\r\n ×\r\n \r\n
\r\n );\r\n }}\r\n />\r\n {t('press_space_enter_or_semicolon_to_add_email')}\r\n
\r\n {emailSendModalStore.isLoading\r\n ? \r\n : <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default inject('emailSendModalStore')(observer(EmailSendForm))","import { decorate, observable, action } from 'mobx';\r\nimport Service from 'Service'\r\nimport uiStore from 'stores/uiStore'\r\n\r\nclass EmailSendModalStore {\r\n isVisible = false\r\n emails = []\r\n witholdingId = undefined\r\n isLoading = false\r\n\r\n openModal(witholdingId,initalEmails){\r\n this.emails = initalEmails\r\n this.witholdingId = witholdingId\r\n this.isVisible = true\r\n }\r\n\r\n closeModal(){\r\n this.isVisible = false\r\n this.emails = []\r\n this.witholdingId = undefined\r\n this.isLoading = false\r\n }\r\n\r\n setIsVisible(value){\r\n this.isVisible = value\r\n }\r\n\r\n setEmails(emails){\r\n this.emails = emails\r\n }\r\n\r\n setWitholdingId(value){\r\n this.witholdingId = value\r\n }\r\n\r\n send(){\r\n if(!this.witholdingId) throw new Error(\"WitholdingId not set to send\")\r\n if(!this.emailsAreValid) throw new Error(\"There are no target emails in the array\")\r\n this.isLoading = true;\r\n Service.Reports.sendEmailWithHoldingPdf(this.witholdingId, this.emails.toString()).then(()=>{\r\n uiStore.addNotification(uiStore.appNotifications.SUCCESS_EMAIL_SEND)\r\n this.closeModal()\r\n })\r\n .catch(e=>{\r\n uiStore.addNotification(uiStore.appNotifications.FAIL_EMAIL_SEND_RETRY)\r\n })\r\n .finally(()=>this.isLoading = false)\r\n\r\n }\r\n\r\n get emailsAreValid() {\r\n return this.emails.length > 0\r\n }\r\n} \r\n\r\ndecorate(EmailSendModalStore, {\r\n isVisible: observable,\r\n emails: observable,\r\n witholdingId: observable,\r\n isLoading: observable,\r\n openModal: action,\r\n closeModal: action,\r\n setIsVisible: action,\r\n setEmails: action,\r\n setWitholdingId: action,\r\n send: action\r\n})\r\n\r\nexport default new EmailSendModalStore();\r\n","import React, { useEffect } from 'react'\r\nimport { Modal } from 'react-bootstrap'\r\nimport { Provider, inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport EmailSendForm from 'Components/Forms/EmailSendForm'\r\nimport emailSendModalStore from 'stores/Components/emailSendModalStore'\r\n\r\nconst WithholdingEmailSendModal = inject('emailSendModalStore')(observer(({ emailSendModalStore })=>{\r\n\r\n const {t} = useTranslation()\r\n\r\n useEffect(()=>{\r\n return () =>{\r\n emailSendModalStore.closeModal()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n },[])\r\n\r\n function handleModalClose(){\r\n emailSendModalStore.closeModal()\r\n }\r\n \r\n return (<>\r\n \r\n \r\n {t('send_withholding_by_email')}\r\n \r\n \r\n \r\n \r\n \r\n )\r\n})) \r\n\r\n\r\nexport default (()=>\r\n \r\n)","import React, { useState } from 'react'\r\nimport { observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport WithholdingEmailSendModal from 'Components/Modals/WithholdingEmailSendModal'\r\nimport { Row, Col, Button } from 'react-bootstrap'\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt'\r\nimport { isEmail } from 'react-multi-email';\r\nimport useStores from 'hooks/useStores';\r\n\r\nconst ButtonWrapper = ({ children }: { children: React.ReactNode }) => {\r\n return (\r\n
\r\n {children}\r\n
\r\n )\r\n}\r\n\r\nconst FinalOptions = () => {\r\n const { t } = useTranslation();\r\n const [isDownloading, setIsDownloading] = useState(false)\r\n\r\n const { providersStore, withholdingsStore, emailSendModalStore } = useStores()\r\n\r\n function download() {\r\n if (!isDownloading) {\r\n setIsDownloading(true)\r\n withholdingsStore.downloadDocument(\r\n withholdingsStore.withholding.Id, withholdingsStore.withholding.Correlative\r\n )\r\n .finally(() => setIsDownloading(false))\r\n }\r\n }\r\n\r\n function showEmailModal() {\r\n emailSendModalStore.openModal(withholdingsStore.withholding.Id, isEmail(providersStore.provider.Email) ? [providersStore.provider.Email] : [])\r\n }\r\n\r\n function handleGenerateAnother() {\r\n window.location.reload()\r\n }\r\n\r\n return (<>\r\n
\r\n

{t('withholdng_succesfull_generate')}

\r\n \r\n \r\n \r\n showEmailModal()}>\r\n
\r\n \r\n

{t('send_by_email')}

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n {isDownloading &&\r\n
\r\n \r\n
}\r\n {!isDownloading &&\r\n download()}>\r\n
\r\n \r\n

{t('download')}

\r\n
\r\n \r\n }\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n )\r\n}\r\n\r\nexport default observer(FinalOptions)","/* Pasos del proceso de retención en orden */\r\n\r\nenum WITHHOLDING_GENERATION_STEPS {\r\n IDENTIFICATION_LOOKUP,\r\n PROVIDER_INFO_INPUT,\r\n WITHHOLDING_INFO_INPUT,\r\n INVOICES_SELECTION,\r\n FINAL_OPTIONS\r\n}\r\n\r\nexport default WITHHOLDING_GENERATION_STEPS","import React, { useState, useEffect } from 'react'\r\nimport { Prompt } from 'react-router-dom'\r\nimport DocumentSelectionForm from './InvoiceSelectionForm/DocumentSelectionForm'\r\nimport WhithholdingInfoForm from './WhithholdingInfoForm'\r\nimport {\r\n ProviderInformationForm,\r\n IdentificationLookup\r\n} from '../../../Components/Forms'\r\nimport { observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle'\r\nimport FinalOptions from './FinalOptions'\r\nimport WITHHOLDING_GENERATION_STEPS from './WithholdingGenerationSteps'\r\nimport useStores from 'hooks/useStores'\r\n\r\n\r\nconst WithholdingGeneration = () => {\r\n const { t } = useTranslation();\r\n useTitle('generating_withholding')\r\n const { providersStore, withholdingsStore } = useStores()\r\n\r\n const [step, setStep] = useState(WITHHOLDING_GENERATION_STEPS.IDENTIFICATION_LOOKUP)\r\n\r\n useEffect(() => {\r\n providersStore.initProcess()\r\n withholdingsStore.initProcess()\r\n return () => {\r\n // Limpiar estados al salir\r\n providersStore.clear()\r\n withholdingsStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n function nextStep() {\r\n switch (step) {\r\n case WITHHOLDING_GENERATION_STEPS.IDENTIFICATION_LOOKUP:\r\n setStep(WITHHOLDING_GENERATION_STEPS.PROVIDER_INFO_INPUT)\r\n break;\r\n case WITHHOLDING_GENERATION_STEPS.PROVIDER_INFO_INPUT:\r\n setStep(WITHHOLDING_GENERATION_STEPS.WITHHOLDING_INFO_INPUT)\r\n break;\r\n case WITHHOLDING_GENERATION_STEPS.WITHHOLDING_INFO_INPUT:\r\n setStep(WITHHOLDING_GENERATION_STEPS.INVOICES_SELECTION)\r\n break;\r\n case WITHHOLDING_GENERATION_STEPS.INVOICES_SELECTION:\r\n setStep(WITHHOLDING_GENERATION_STEPS.FINAL_OPTIONS)\r\n break;\r\n default:\r\n break;\r\n }\r\n window.scrollTo(0, 1)\r\n }\r\n\r\n function previous() {\r\n switch (step) {\r\n case WITHHOLDING_GENERATION_STEPS.PROVIDER_INFO_INPUT:\r\n providersStore.resetProcess()\r\n setStep(WITHHOLDING_GENERATION_STEPS.IDENTIFICATION_LOOKUP)\r\n break;\r\n case WITHHOLDING_GENERATION_STEPS.WITHHOLDING_INFO_INPUT:\r\n setStep(WITHHOLDING_GENERATION_STEPS.PROVIDER_INFO_INPUT)\r\n break;\r\n case WITHHOLDING_GENERATION_STEPS.INVOICES_SELECTION:\r\n setStep(WITHHOLDING_GENERATION_STEPS.WITHHOLDING_INFO_INPUT)\r\n break;\r\n default:\r\n break;\r\n }\r\n window.scrollTo(0, 1)\r\n }\r\n\r\n return (\r\n
\r\n {step !== WITHHOLDING_GENERATION_STEPS.FINAL_OPTIONS &&\r\n

{t('generating_withholding')}

\r\n }\r\n\r\n {step === WITHHOLDING_GENERATION_STEPS.IDENTIFICATION_LOOKUP &&\r\n \r\n }\r\n\r\n {step === WITHHOLDING_GENERATION_STEPS.PROVIDER_INFO_INPUT &&\r\n \r\n }\r\n\r\n {step === WITHHOLDING_GENERATION_STEPS.WITHHOLDING_INFO_INPUT &&\r\n \r\n }\r\n\r\n {step === WITHHOLDING_GENERATION_STEPS.INVOICES_SELECTION &&\r\n }\r\n\r\n {step === WITHHOLDING_GENERATION_STEPS.FINAL_OPTIONS &&\r\n \r\n }\r\n\r\n 1 && step < 5}\r\n message={t('do_you_really_want_to_quit_the_process')}\r\n />\r\n\r\n
\r\n )\r\n}\r\n\r\nexport default observer(WithholdingGeneration)","import React from 'react'\r\nimport useTitle from 'hooks/useTitle'\r\nimport {useTranslation} from 'react-i18next'\r\n\r\nconst ListLayout = ({ title, children }) => {\r\n const { t } = useTranslation();\r\n\r\n useTitle(t('list_of')+' '+t(title))\r\n\r\n return (\r\n
\r\n

{t('list_of')+' '+t(title)}

\r\n
\r\n {children}\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default ListLayout","import React from 'react'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\n\r\n\r\n\r\ntype InvoicesListContextType = {\r\n invoices: IInvoiceDocument[] | undefined,\r\n deleteInvoice: (invoice: IInvoiceDocument) => Promise\r\n}\r\n\r\nconst InvoicesListContext = React.createContext({} as InvoicesListContextType)\r\n\r\nexport default InvoicesListContext","import React, { useState } from 'react'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\nimport { useTranslation } from 'react-i18next';\r\nimport { OverlayTrigger, Tooltip } from 'react-bootstrap';\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt';\r\nimport InvoicesListContext from './InvoicesListContext';\r\n\r\n\r\ntype ActionButtons = {\r\n invoice: IInvoiceDocument,\r\n}\r\n\r\nconst ActionButtons = ({ invoice }: ActionButtons) => {\r\n const { t } = useTranslation();\r\n\r\n const [isDeleting, setisDeleting] = useState(false)\r\n\r\n const { deleteInvoice } = React.useContext(InvoicesListContext)\r\n\r\n async function handleDelete() {\r\n if (invoice.IdWithholding) {\r\n alert(t('this_invoice_is_part_of_a_withholding_and_cannot_be_deleted'))\r\n return\r\n }\r\n const confirmation = window.confirm(t('confirm_deletion'))\r\n if (confirmation) {\r\n try {\r\n setisDeleting(true)\r\n await deleteInvoice(invoice)\r\n\r\n } finally {\r\n setisDeleting(false)\r\n }\r\n }\r\n }\r\n return (\r\n <>\r\n {!invoice.IdWithholding && <>\r\n {isDeleting &&
\r\n \r\n
}\r\n {!isDeleting && \r\n {t('delete')}\r\n \r\n }\r\n >\r\n \r\n }\r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default ActionButtons","import React from 'react'\r\nimport { Responsive } from 'responsive-react';\r\nimport { Table } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport Utilities from 'Utilities'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\nimport ActionButtons from './ActionButtons';\r\n\r\n\r\ntype LargeScreenInvoicesListPropsTypes = {\r\n invoices: IInvoiceDocument[],\r\n}\r\n\r\nconst LargeScreenInvoicesList = ({ invoices }: LargeScreenInvoicesListPropsTypes) => {\r\n\r\n const { t } = useTranslation();\r\n\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {invoices.map(invoice => {\r\n return \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n })}\r\n \r\n
{t('legal_identification')}{t('provider_name')}{t('invoice_number')}{t('control_number')}{t('serie')}{t('total_amount')}{t('date')}{t('actions')}
{invoice.Rif}{invoice.BusinessName}{invoice.InvoiceNumber}{invoice.ControlNumber}{invoice.Serie}{Utilities.FormatCurrency(invoice.Total)}{Utilities.TransformDate(invoice.EmitDate)}\r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default LargeScreenInvoicesList","import React from 'react'\r\nimport { Col } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport Utilities from 'Utilities'\r\nimport 'Styles/MobileCard.scss'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\nimport ActionButtons from './ActionButtons'\r\n\r\n\r\ntype InvoiceCardPropsType = {\r\n invoice: IInvoiceDocument,\r\n\r\n}\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst InvoiceCard = ({ invoice }: InvoiceCardPropsType) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n
\r\n {t('invoice')}: {invoice.InvoiceNumber}
\r\n
\r\n {t('provider') + ': '}\r\n {invoice.BusinessName}\r\n
\r\n {t('total_amount') + ': '}\r\n {Utilities.FormatCurrency(invoice.Total)}\r\n
\r\n {t('control_number') + ': '} {invoice.ControlNumber}\r\n \r\n

\r\n {invoice.Serie && <>\r\n {t('serie') + ': '}\r\n {invoice.Serie}\r\n

\r\n }\r\n {t('emit_date') + ': '}\r\n {Utilities.TransformDate(invoice.EmitDate)}\r\n

\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default InvoiceCard","import React from 'react'\r\nimport { Responsive } from 'responsive-react';\r\nimport { Row } from 'react-bootstrap'\r\nimport InvoiceCard from './InvoiceCard'\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\n\r\ntype SmallScreenInvoicesListPropsTypes = {\r\n invoices: IInvoiceDocument[],\r\n}\r\n\r\nconst SmallScreenInvoicesList = ({ invoices }: SmallScreenInvoicesListPropsTypes) => {\r\n\r\n return (\r\n \r\n \r\n {invoices.map(invoice => {\r\n return \r\n })}\r\n \r\n \r\n )\r\n}\r\n\r\nexport default SmallScreenInvoicesList","import React, { useEffect, useState } from 'react'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { ListLayout } from 'Components/Layouts'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LargeScreenInvoicesList from './LargeScreen';\r\nimport SmallScreenInvoicesList from './SmallScreen';\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument'\r\nimport apiService from 'Service'\r\nimport InvoicesListContext from './InvoicesListContext';\r\nimport useStores from 'hooks/useStores';\r\n\r\n\r\nconst InvoicesList = () => {\r\n const { t } = useTranslation();\r\n\r\n const [invoices, setInvoices] = useState(undefined)\r\n const [isLoading, setIsLoading] = useState(true)\r\n const {invoicesStore} = useStores()\r\n\r\n useEffect(() => {\r\n async function LoadInvoices() {\r\n setIsLoading(true)\r\n setInvoices([])\r\n\r\n const result = await apiService.InvoiceDocuments.getAll(0, 500)\r\n setInvoices(result)\r\n setIsLoading(false)\r\n }\r\n\r\n LoadInvoices()\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n async function deleteInvoice(invoice: IInvoiceDocument) {\r\n const success = await invoicesStore.deleteInvoice(invoice)\r\n if (success){\r\n setInvoices([...invoices!.filter(x=>x.Id !== invoice.Id)])\r\n }\r\n }\r\n\r\n\r\n if (isLoading) return \r\n\r\n if (invoices) {\r\n if (invoices.length === 0) return

{t('not_invoices_found')}

\r\n\r\n return \r\n \r\n \r\n \r\n }\r\n\r\n return

{t('cannot_recover_list_of', { resource: t('invoices') })}

\r\n}\r\n\r\nexport default (() => {\r\n return \r\n \r\n \r\n})","import React from 'react'\r\nimport { Tooltip, OverlayTrigger } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Link } from 'react-router-dom'\r\nimport { PROVIDERS_EDIT } from 'Constants/Routes'\r\n\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst ActionButtons = ({idProvider}) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <>\r\n \r\n {t('edit')}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default ActionButtons","import React from 'react'\r\nimport { Col } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport 'Styles/MobileCard.scss'\r\nimport ActionButtons from './ActionButtons'\r\n\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst ProviderCard = ({ provider }) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n
\r\n {t('legal_name')}: {provider.BusinessName}
\r\n
\r\n {t('legal_identification')+': '} \r\n {provider.Rif}\r\n
\r\n {t('address')+': '} \r\n {provider.FiscalAddress}\r\n
\r\n {t('phone')+': '} \r\n {provider.PhoneNumber}\r\n

\r\n {t('email')+': '} \r\n {provider.Email}\r\n

\r\n {t('vat_withholding_percentage')+': '} \r\n {provider.WithholdingPercentageIVA}%\r\n

\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default ProviderCard","import React, { useEffect } from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { Responsive } from 'responsive-react';\r\nimport { Table, Row } from 'react-bootstrap'\r\nimport { ListLayout } from 'Components/Layouts'\r\nimport { useTranslation } from 'react-i18next'\r\nimport ProviderCard from './ProviderCard'\r\nimport ActionButtons from './ActionButtons'\r\n\r\nconst ProvidersList = ({ providersStore }) => {\r\n const { t } = useTranslation();\r\n\r\n useEffect(() => {\r\n providersStore.fetch()\r\n return () =>{\r\n providersStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n return (\r\n <>\r\n \r\n {providersStore.isLoading && }\r\n\r\n {!providersStore.isLoading && providersStore.providers &&\r\n <>\r\n {providersStore.providers.length === 0 &&

{t('not_providers_found')}

}\r\n {providersStore.providers.length &&\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {providersStore.providers.map(provider => { \r\n return \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n })}\r\n \r\n
{t('legal_name')}{t('legal_identification')}{t('address')}{t('phone')}{t('email')}{t('vat_withholding_percentage')}{t('actions')}
{provider.BusinessName}{provider.Rif}{provider.FiscalAddress}{provider.PhoneNumber}{provider.Email}{provider.WithholdingPercentageIVA}%
\r\n
\r\n \r\n \r\n {providersStore.providers.map(provider => {\r\n return \r\n })}\r\n \r\n \r\n \r\n }\r\n \r\n }\r\n
\r\n \r\n )\r\n}\r\n\r\n\r\nexport default inject('providersStore')(observer(ProvidersList))","import React, { useEffect } from 'react'\r\nimport { useParams, useHistory } from 'react-router-dom'\r\nimport {\r\n ProviderInformationForm,\r\n} from 'Components/Forms'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next';\r\nimport useTitle from 'hooks/useTitle'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport {PROVIDERS_LIST} from 'Constants/Routes'\r\nimport uiStore from 'stores/uiStore'\r\n\r\nconst ProviderEdit = ({ providersStore }) => {\r\n const { t } = useTranslation();\r\n const title = t('editing')+' '+t('provider')\r\n\r\n const { id } = useParams()\r\n const history = useHistory()\r\n\r\n useTitle(title)\r\n\r\n useEffect(() => {\r\n providersStore.idLookUp(id)\r\n return () => {\r\n // Limpiar estados al salir\r\n providersStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n function nextStep() {\r\n uiStore.addNotification(uiStore.appNotifications.SUCCESS_EDITED)\r\n history.push(PROVIDERS_LIST)\r\n }\r\n\r\n if (providersStore.isLoading && providersStore.provider.Id === undefined) {\r\n return
\r\n }\r\n\r\n return (\r\n
\r\n

{title}

\r\n\r\n {providersStore.provider.Id === undefined\r\n ?

{t('record_not_found')}

\r\n :<>\r\n \r\n \r\n }\r\n\r\n\r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"providersStore\")(observer(ProviderEdit))","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\nimport defaultValues from 'Constants/DefaultValues'\r\nimport IProvider from 'interfaces/service/IProvider'\r\n\r\nclass providersStore {\r\n isLoading = true\r\n providers = []\r\n\r\n fetch(initial = 0, take = 100) {\r\n this.isLoading = true\r\n this.providers = []\r\n apiService.Providers.getAll(initial, take).then(data => {\r\n this.providers = data\r\n }).finally(() => this.isLoading = false)\r\n }\r\n\r\n setIsLoading(value: boolean) {\r\n this.isLoading = value\r\n }\r\n\r\n provider: IProvider = defaultValues.provider\r\n providerExists = false\r\n isSending = false\r\n\r\n\r\n setProvider(newProviderData: IProvider) {\r\n this.provider = { ...this.provider, ...newProviderData }\r\n }\r\n\r\n setIsSending(value: boolean) {\r\n this.isSending = value\r\n }\r\n\r\n setProviderExists(value: boolean) {\r\n this.providerExists = value\r\n }\r\n\r\n initProcess() {\r\n this.setIsLoading(true)\r\n this.provider = defaultValues.provider\r\n this.providerExists = false\r\n this.setIsLoading(false)\r\n }\r\n\r\n resetProcess() {\r\n this.setIsLoading(true)\r\n this.provider = { ...defaultValues.provider, Rif: this.provider.Rif }\r\n this.providerExists = false\r\n this.setIsLoading(false)\r\n }\r\n\r\n identificationLookup(rif: string) {\r\n this.setIsLoading(true)\r\n return apiService.Providers.getByRif(rif).then(provider => {\r\n if (!provider) {\r\n //Colocar el rif para que sea visible en el proximo formulario\r\n this.provider = { ...provider, Rif: rif }\r\n this.setProviderExists(false)\r\n return true\r\n }\r\n this.setProvider(provider)\r\n this.setProviderExists(true)\r\n return true\r\n\r\n }).catch(err => {\r\n throw err\r\n }).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n idLookUp(id: string) {\r\n this.setIsLoading(true)\r\n this.provider = defaultValues.provider\r\n return apiService.Providers.getById(id).then(provider => {\r\n this.setProvider(provider)\r\n this.setProviderExists(true)\r\n return true\r\n }).catch(err => {\r\n if (err && err.response && err.response.status === 404) return false\r\n }).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n addProvider(newProviderData: IProvider) {\r\n this.setIsLoading(true)\r\n newProviderData.WithholdingPercentageISLR = \"0\";\r\n this.setProvider(newProviderData)\r\n return apiService.Providers.add(this.provider).then(data => {\r\n this.setProviderExists(true)\r\n this.setProvider(data)\r\n return true\r\n }).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n updateProvider(newProviderData: IProvider) {\r\n this.setIsLoading(true)\r\n this.setProvider(newProviderData)\r\n return apiService.Providers.update(this.provider).then(data => {\r\n if (data) {\r\n this.setProvider(data)\r\n this.setIsLoading(false)\r\n return true\r\n }\r\n return false\r\n }\r\n ).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n clear() {\r\n this.isLoading = true\r\n this.providers = []\r\n this.provider = defaultValues.provider\r\n this.providerExists = false\r\n this.isSending = false\r\n }\r\n}\r\n\r\ndecorate(providersStore, {\r\n providers: observable,\r\n isLoading: observable,\r\n provider: observable,\r\n providerExists: observable,\r\n fetch: action,\r\n initProcess: action,\r\n resetProcess: action,\r\n identificationLookup: action,\r\n idLookUp: action,\r\n addProvider: action,\r\n updateProvider: action,\r\n clear: action,\r\n})\r\n\r\nexport default new providersStore();\r\n","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\nimport defaultValues from 'Constants/DefaultValues'\r\nimport providersStore from './providersStore'\r\nimport moment from 'moment'\r\nimport uiStore from './uiStore';\r\nimport AppNotifications from 'Constants/AppNotifications/AppNotifications';\r\n\r\nclass invoicesStore {\r\n isLoading = true\r\n amounts = []\r\n isEditing\r\n\r\n invoice = defaultValues.invoice\r\n\r\n updateInvoiceState(newData) {\r\n this.invoice = { ...this.invoice, ...newData }\r\n }\r\n\r\n setIsLoading(value) {\r\n this.isLoading = value\r\n }\r\n\r\n resetProcess() {\r\n this.setIsLoading(true)\r\n this.invoice = defaultValues.invoice\r\n this.setIsLoading(false)\r\n }\r\n\r\n postNewCompleteDocument() {\r\n if (providersStore.provider.Id === '') throw new Error('not_valid_provider_id')\r\n this.setIsLoading(true)\r\n return apiService.DocumentCompletes.add({\r\n Invoice: { ...this.invoice, IdProvider: providersStore.provider.Id, EmitDate: moment(this.invoice.EmitDate).format('yyyy-MM-DD') },\r\n InvoiceDetails: this.amounts,\r\n InvoicePays: [defaultValues.invoicePay]\r\n }).then(data => {\r\n this.setIsLoading(false)\r\n return data\r\n }).catch(() => {\r\n this.setIsLoading(false)\r\n })\r\n }\r\n\r\n updateOnService(newData) {\r\n this.setIsLoading(true)\r\n this.updateInvoiceState(newData)\r\n return apiService.Providers.update(this.invoice).then(data => {\r\n this.updateInvoiceState(data)\r\n this.setIsLoading(false)\r\n return true\r\n }\r\n ).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n initProcess(isEditing = false) {\r\n this.setIsLoading(true)\r\n this.invoice = defaultValues.invoice\r\n this.amounts = []\r\n this.setIsLoading(false)\r\n this.isEditing = isEditing\r\n }\r\n\r\n addAmount(amountData) {\r\n this.amounts.push({ ...defaultValues.invoiceDetail, ...amountData })\r\n }\r\n\r\n deleteAmount(row) {\r\n this.amounts = [...this.amounts.filter(x => x.Row !== row)]\r\n }\r\n\r\n clear() {\r\n this.isLoading = true\r\n this.invoices = []\r\n this.invoice = defaultValues.invoice\r\n this.amounts = []\r\n }\r\n\r\n async deleteInvoice(invoice) {\r\n const result = await apiService.InvoiceDocuments.deleteInvoice(invoice)\r\n if (result.status === 200) {\r\n uiStore.addNotification(AppNotifications.INVOICE_DELETE_SUCCESS)\r\n } else {\r\n uiStore.addNotification(AppNotifications.INVOICE_DELETE_FAIL)\r\n }\r\n return result.status === 200\r\n }\r\n}\r\n\r\ndecorate(invoicesStore, {\r\n invoice: observable,\r\n isLoading: observable,\r\n amounts: observable,\r\n initProcess: action,\r\n resetProcess: action,\r\n postNewCompleteDocument: action,\r\n updateOnService: action,\r\n addAmount: action,\r\n deleteAmount: action,\r\n clear: action,\r\n deleteInvoice: action,\r\n})\r\n\r\nexport default new invoicesStore();\r\n","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\nimport defaultValues from 'Constants/DefaultValues'\r\nimport providersStore from './providersStore'\r\nimport Utilities from 'Utilities'\r\nimport Moment from 'moment'\r\nimport FileDownload from 'js-file-download'\r\nimport companyStore from \"stores/companyStore\"\r\nimport IInvoiceDocumentComplete from 'interfaces/service/Invoice/IInvoiceDocumentComplete'\r\nimport IInvoiceForDocumentSelection from 'interfaces/app/IInvoiceForDocumentSelection';\r\nimport IInvoiceDocument from 'interfaces/service/Invoice/IInvoiceDocument';\r\nimport invoicesStore from './invoicesStore';\r\n\r\nclass withholdingsStore {\r\n // Registro\r\n isLoading = true\r\n withholdings = []\r\n\r\n // Lista\r\n withholding = defaultValues.withholding\r\n\r\n // Selecció de documentos\r\n pendingDocuments: IInvoiceForDocumentSelection[] = []\r\n\r\n // Envio de correo\r\n showEmailSendModal = false\r\n emailTo = ''\r\n\r\n fetch(dateFrom = Moment().startOf('month').format('YYYY-MM-DD'),\r\n dateTo = Moment().endOf('month').format('YYYY-MM-DD'),\r\n initial = 0,\r\n take = 10,\r\n ) {\r\n this.isLoading = true\r\n this.withholdings = []\r\n apiService.Withholding.getByDate(dateFrom, dateTo, initial, take).then(data => {\r\n this.withholdings = data\r\n this.isLoading = false\r\n }).finally(() => this.isLoading = false)\r\n }\r\n\r\n updateWithholdingState(newData: any) {\r\n this.withholding = { ...this.withholding, ...newData }\r\n }\r\n\r\n setIsLoading(value: boolean) {\r\n this.isLoading = value\r\n }\r\n\r\n resetProcess() {\r\n this.setIsLoading(true)\r\n this.withholding = defaultValues.withholding\r\n this.setIsLoading(false)\r\n }\r\n\r\n postNew(selectedDocuments: IInvoiceDocumentComplete[]) {\r\n if (providersStore.provider.Id === '') throw new Error('not_valid_provider_id')\r\n this.setIsLoading(true)\r\n const invoiceIds = selectedDocuments.map(doc => doc.Invoice.Id)\r\n const data = {\r\n WithHolding: { ...this.withholding, IdProvider: providersStore.provider.Id, Date: Moment(this.withholding.Date).format('yyyy-MM-DD') },\r\n IdInvoices: invoiceIds\r\n }\r\n return apiService.Withholding.add(data).then(data => {\r\n if (data) {\r\n this.withholding = data\r\n companyStore.increaseCompanyCurrentCorrelativeByOne()\r\n return true\r\n }\r\n return null\r\n })\r\n .finally(() => this.setIsLoading(false))\r\n }\r\n\r\n initProcess() {\r\n this.setIsLoading(true)\r\n this.withholding = defaultValues.withholding\r\n this.pendingDocuments = []\r\n this.setIsLoading(false)\r\n }\r\n\r\n setPendingDocuments(documets: IInvoiceForDocumentSelection[]) {\r\n this.pendingDocuments = documets\r\n }\r\n\r\n fetchPendingDocuments() {\r\n this.setIsLoading(true)\r\n apiService.DocumentCompletes.getPending(providersStore.provider.Id).then(Documents => {\r\n if (Documents) {\r\n const documentForSelection: IInvoiceForDocumentSelection[] = Documents.map(document => {\r\n let total = 0\r\n document.InvoiceDetails.forEach((invoiceDetail) => {\r\n total += invoiceDetail.TotalAmmount\r\n })\r\n\r\n return {\r\n ...document,\r\n Selected: true,\r\n CalculatedTotalAmount: Utilities.FormatCurrency(total)\r\n }\r\n })\r\n this.setPendingDocuments(documentForSelection)\r\n }\r\n }).finally(() => this.setIsLoading(false))\r\n }\r\n\r\n downloadDocument(idWithHolding: any, fileName = 'withholding') {\r\n return apiService.Reports.withholding(idWithHolding).then(data => {\r\n if (data) {\r\n FileDownload(data, fileName + '.pdf')\r\n return true\r\n };\r\n })\r\n }\r\n\r\n setShowEmailSendModal(value: boolean) {\r\n this.showEmailSendModal = value\r\n }\r\n\r\n setEmailTo(value: string) {\r\n this.emailTo = value\r\n }\r\n\r\n clear() {\r\n this.isLoading = true\r\n this.withholdings = []\r\n this.pendingDocuments = []\r\n this.withholding = defaultValues.withholding\r\n this.showEmailSendModal = false\r\n this.emailTo = ''\r\n }\r\n\r\n async deleteInvoice(invoice: IInvoiceDocument) {\r\n const success = await invoicesStore.deleteInvoice(invoice)\r\n if (success) {\r\n this.setPendingDocuments([...this.pendingDocuments.filter(x => x.Invoice.Id !== invoice.Id)])\r\n }\r\n }\r\n}\r\n\r\ndecorate(withholdingsStore, {\r\n withholdings: observable,\r\n isLoading: observable,\r\n withholding: observable,\r\n pendingDocuments: observable,\r\n showEmailSendModal: observable,\r\n emailTo: observable,\r\n fetch: action,\r\n initProcess: action,\r\n updateWithholdingState: action,\r\n resetProcess: action,\r\n postNew: action,\r\n setPendingDocuments: action,\r\n fetchPendingDocuments: action,\r\n setShowEmailSendModal: action,\r\n setEmailTo: action,\r\n clear: action\r\n})\r\n\r\nexport default new withholdingsStore();\r\n","import React, {useState} from 'react'\r\nimport { Tooltip, OverlayTrigger } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next';\r\nimport withholdingsStore from 'stores/withholdingsStore'\r\nimport emailSendModalStore from 'stores/Components/emailSendModalStore'\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt'\r\nimport { isEmail } from 'react-multi-email';\r\n\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst ActionButtons = ({idWithholding, correlative, providerEmail}) => {\r\n const { t } = useTranslation();\r\n const [isDownloading, setIsDownloading] = useState(false)\r\n\r\n function download(){\r\n setIsDownloading(true)\r\n withholdingsStore.downloadDocument(idWithholding, correlative)\r\n .finally(()=>setIsDownloading(false))\r\n } \r\n\r\n function showEmailModal(){\r\n emailSendModalStore.openModal(idWithholding, isEmail(providerEmail) ? [providerEmail] : [])\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {t('preview')}\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n {t('send_by_email')}\r\n \r\n }\r\n >\r\n \r\n \r\n\r\n {isDownloading && \r\n
\r\n \r\n
}\r\n {!isDownloading && \r\n {t('download')}\r\n \r\n }\r\n >\r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default ActionButtons","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Responsive } from 'responsive-react';\r\nimport { Table } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport Utilities from 'Utilities'\r\nimport ActionButtons from './ActionButtons'\r\n\r\nconst LargeScreen = ({ withholdingListStore }) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {withholdingListStore.withholdings.map(withholding => {\r\n return \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n })}\r\n \r\n
{t('provider')}{t('correlative')}{t('date')}{t('txt_generated_date')}{t('impositive_period')}{t('actions')}
{withholding.Provider.BusinessName}{withholding.Correlative}{Utilities.TransformDate(withholding.Date)}\r\n {withholding.DateGenerate === \"2000-01-01T00:00:00\"\r\n ? t('txt_not_generated_yet')\r\n : Utilities.TransformDate(withholding.DateGenerate)\r\n }\r\n {withholding.ImpositivePeriod}\r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\n\r\nexport default inject('withholdingListStore')(observer(LargeScreen))","import React from 'react'\r\nimport { Col } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next';\r\nimport Utilities from 'Utilities'\r\nimport 'Styles/MobileCard.scss'\r\nimport ActionButtons from './ActionButtons'\r\n\r\n// Tarjeta usada en la version de movil o tablet.\r\nconst WithholdingCard = ({ withholding }) => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n
\r\n {t('provider')}: {withholding.Provider.BusinessName}
\r\n
\r\n {t('correlative') + ': '}\r\n {withholding.Correlative}\r\n
\r\n {t('date') + ': '}\r\n {Utilities.TransformDate(withholding.Date)}\r\n
\r\n {t('txt_generated_date') + ': '}\r\n \r\n {withholding.DateGenerate === \"2000-01-01T00:00:00\"\r\n ? t('txt_not_generated_yet')\r\n : Utilities.TransformDate(withholding.DateGenerate)\r\n }\r\n \r\n
\r\n {t('impositive_period') + ': '}\r\n {withholding.ImpositivePeriod}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default WithholdingCard","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Responsive } from 'responsive-react';\r\nimport { Row } from 'react-bootstrap'\r\nimport WithholdingCard from './WithholdingCard'\r\n\r\nconst SmallScreen = ({ withholdingListStore }) => {\r\n\r\n return (\r\n \r\n \r\n {withholdingListStore.withholdings.map(withholding => {\r\n return \r\n })}\r\n \r\n \r\n )\r\n}\r\n\r\n\r\nexport default inject('withholdingListStore')(observer(SmallScreen))","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { useForm } from 'react-hook-form'\r\nimport { Form, Button, Row, Col } from 'react-bootstrap';\r\nimport Moment from 'moment'\r\n\r\nconst Filter = ({ withholdingListStore }) => {\r\n const { t } = useTranslation();\r\n\r\n const { register, handleSubmit } = useForm();\r\n\r\n function onSubmit(data) {\r\n withholdingListStore.fetch(data.DateFrom, data.DateTo)\r\n }\r\n\r\n return (\r\n
\r\n
\r\n \r\n \r\n \r\n {t('date_from')}\r\n \r\n \r\n \r\n \r\n \r\n {t('date_to')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('search')}\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\n\r\nexport default inject('withholdingListStore')(observer(Filter))","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\nimport Moment from 'moment'\r\n\r\nclass WithholdingListStore {\r\n isLoading = true\r\n withholdings = []\r\n totalPages = undefined\r\n currentPage = undefined\r\n perPage = 10\r\n skip = 0\r\n\r\n fetch(\r\n dateFrom = Moment().startOf('month').format('YYYY-MM-DD'),\r\n dateTo = Moment().endOf('month').format('YYYY-MM-DD'),\r\n initial = 0,\r\n take = 100) {\r\n this.isLoading = true\r\n this.withholdings = []\r\n apiService.Withholding.getByDate(dateFrom, dateTo, initial, take).then(data => {\r\n if (data) this.processData(data)\r\n }).finally(() => this.isLoading = false)\r\n }\r\n\r\n processData(data) {\r\n this.isLoading = true\r\n /* const registerCount = data.count\r\n this.totalPages = (Math.ceil(registerCount / this.perPage)) */\r\n this.withholdings = data\r\n this.isLoading = false\r\n }\r\n\r\n moveToPage(pageNumber) {\r\n this.currentPage = pageNumber\r\n this.skip = Math.ceil(pageNumber * this.perPage)\r\n this.fetch()\r\n };\r\n\r\n clear() {\r\n this.isLoading = true\r\n this.withholdings = []\r\n this.totalPages = undefined\r\n this.currentPage = undefined\r\n this.perPage = 10\r\n this.skip = 0\r\n }\r\n}\r\n\r\ndecorate(WithholdingListStore, {\r\n withholdings: observable,\r\n isLoading: observable,\r\n totalPages: observable,\r\n currentPage: observable,\r\n perPage: observable,\r\n fetch: action,\r\n processData: action,\r\n moveToPage: action,\r\n clear: action\r\n})\r\n\r\nexport default new WithholdingListStore();\r\n","import React, { useEffect } from 'react'\r\nimport { Provider, inject, observer } from 'mobx-react'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport { ListLayout } from 'Components/Layouts'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LargeScreen from './LargeScreen'\r\nimport SmallScreen from './SmallScreen'\r\nimport WithholdingEmailSendModal from 'Components/Modals/WithholdingEmailSendModal'\r\nimport Filter from './Filter'\r\nimport withholdingListStore from 'stores/Pages/Withholding/withholdingListStore'\r\n\r\nconst WithholdingList = inject('withholdingListStore')(observer(({ withholdingListStore }) => {\r\n const { t } = useTranslation();\r\n\r\n useEffect(() => {\r\n withholdingListStore.fetch()\r\n return () => {\r\n withholdingListStore.clear()\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [])\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {withholdingListStore.isLoading && }\r\n\r\n {!withholdingListStore.isLoading && withholdingListStore.withholdings &&\r\n <>\r\n {withholdingListStore.withholdings.length === 0 &&

{t('not_withholdins_found')}

}\r\n {withholdingListStore.withholdings.length > 0 &&\r\n <>\r\n \r\n \r\n \r\n \r\n }\r\n \r\n }\r\n
\r\n \r\n )\r\n})) \r\n\r\n\r\nexport default (()=>{\r\n return \r\n \r\n})","const PURCHASE_LEDGER_FORMATS = {\r\n PDF: { value: 0, description: \"PDF\", extension: \"pdf\" },\r\n EXCEL: { value: 1, description: \"Excel\", extension: \"xls\" },\r\n}\r\n\r\nexport function appendLedgerFormatExtensionToText(ledgerFormatValue: number, text: string) {\r\n const format = Object.values(PURCHASE_LEDGER_FORMATS).find(x=>x.value === ledgerFormatValue)\r\n if(!format) throw new Error(\"Invalid ledger format: \"+ledgerFormatValue)\r\n return `${text}.${format.extension}`;\r\n}\r\n\r\nexport default PURCHASE_LEDGER_FORMATS","const PURCHASE_LEDGER_TYPES = {\r\n DETAILED: { value: 1, description: \"detailed\" },\r\n DAILY: { value: 2, description: \"daily\" },\r\n RESUME: { value: 3, description: \"resume\" },\r\n}\r\n\r\nexport default PURCHASE_LEDGER_TYPES","import React, { useState } from 'react'\r\nimport { useForm } from 'react-hook-form'\r\nimport { Form } from 'react-bootstrap'\r\nimport vlMessages from 'Constants/ValidationMessages'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt'\r\nimport { Row, Col, Button } from 'react-bootstrap'\r\nimport apiService from 'Service'\r\nimport FileDownload from 'js-file-download'\r\nimport Moment from 'moment'\r\nimport PURCHASE_LEDGER_FORMATS, { appendLedgerFormatExtensionToText } from 'Constants/PurchaseLedgerFormats'\r\nimport PURCHASE_LEDGER_TYPES from 'Constants/PurchaseLedgerTypes'\r\n\r\nconst PurchaseLedger = () => {\r\n const { register, handleSubmit, errors } = useForm();\r\n const { t } = useTranslation()\r\n\r\n const [isDownloading, setIsDownloading] = useState(false)\r\n\r\n function onSubmit(data) {\r\n setIsDownloading(true)\r\n apiService.Reports.purchaseLedgerPdf(data.From, data.To, data.TypeLedger, data.TypeFormat)\r\n .then(fileData => {\r\n if (fileData) {\r\n const filename = appendLedgerFormatExtensionToText(parseInt(data.TypeFormat), \"detallado\")\r\n console.log(filename)\r\n FileDownload(fileData, filename)\r\n }\r\n })\r\n .catch((err) => {\r\n if (err && err.response && err.response.status === 404) {\r\n alert(t('you_dont_have_invoices_on_that_date_range'))\r\n }\r\n })\r\n .finally(() => setIsDownloading(false))\r\n }\r\n\r\n\r\n return (
\r\n

{t('purchase_ledger')}

\r\n
\r\n
\r\n \r\n \r\n \r\n {t('date_from')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('date_to')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('report_type')}:\r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {t('report_format')}:\r\n \r\n {Object.values(PURCHASE_LEDGER_FORMATS).map(format => {\r\n return \r\n })}\r\n \r\n \r\n \r\n \r\n \r\n {isDownloading && }\r\n {!isDownloading &&\r\n \r\n }\r\n\r\n \r\n \r\n
\r\n
\r\n
)\r\n}\r\n\r\nexport default PurchaseLedger","import { decorate, observable, action } from 'mobx';\r\n\r\nclass SettingsStore {\r\n isLoading = undefined\r\n correlative = undefined\r\n\r\n reset(){\r\n this.isLoading = true\r\n }\r\n\r\n loadSettings(){\r\n \r\n setTimeout(()=>{\r\n this.correlative = 2\r\n this.isLoading = false\r\n },2000)\r\n }\r\n}\r\n\r\ndecorate(SettingsStore,{\r\n isLoading: observable,\r\n correlative: observable,\r\n reset: action,\r\n loadSettings: action,\r\n})\r\n\r\nexport default new SettingsStore();","import React, { useEffect } from 'react'\r\nimport { Col, Form, Button } from 'react-bootstrap'\r\nimport * as yup from 'yup'\r\nimport { useForm } from 'react-hook-form'\r\nimport { useTranslation } from 'react-i18next'\r\nimport settingsStore from './store'\r\nimport { Provider, inject, observer } from 'mobx-react'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport useTitle from 'hooks/useTitle'\r\n\r\nconst validationSchema = yup.object().shape({\r\n Correlative: yup.string().required(),\r\n});\r\n\r\n\r\n\r\nconst Settings = inject(\"settingsStore\")(observer(({settingsStore}) => {\r\n const {t} = useTranslation()\r\n const { register, handleSubmit } = useForm({ validationSchema: validationSchema })\r\n\r\n const title = t('company_settings')\r\n useTitle(title)\r\n\r\n useEffect(()=>{\r\n settingsStore.loadSettings()\r\n settingsStore.reset()\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n },[])\r\n\r\n function onSubmit(data){\r\n\r\n }\r\n\r\n if(settingsStore.isLoading){\r\n return \r\n }\r\n\r\n return (<>\r\n
\r\n
\r\n \r\n \r\n \r\n {t('correlative')}\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n )\r\n})) \r\n\r\nexport default (() =>{\r\n return(\r\n \r\n )\r\n})","import { decorate, observable, action } from 'mobx';\r\nimport apiService from 'Service'\r\nimport FileDownload from 'js-file-download'\r\nimport Utilities from 'Utilities'\r\n\r\nclass withholdingsStore {\r\n\r\n isFetching = true\r\n isGenerating = false\r\n txts = []\r\n\r\n createTxt(fileName = \"archivo_txt\") {\r\n this.isGenerating = true\r\n apiService.Reports.createTxt().then(data => {\r\n if (data) {\r\n FileDownload(data, `${fileName}_${Utilities.CurrentDate('dd-mm-yyyy')}.txt`)\r\n };\r\n }).finally(()=>this.isGenerating = false)\r\n .catch((err)=>console.log(err))\r\n }\r\n\r\n downloadTxt(txtNumber, fileName = \"archivo_txt\"){\r\n if(!txtNumber) throw new Error(\"'txtNumber' param is required\")\r\n\r\n return apiService.Reports.downloadTxt(txtNumber).then(data => {\r\n if (data) {\r\n FileDownload(data, `${fileName}_${txtNumber}.txt`)\r\n };\r\n }).catch((err)=>console.log(err))\r\n }\r\n\r\n fetchTxts(from, to){\r\n if(!from) throw new Error(\"'from' param is required\")\r\n if(!to) throw new Error(\"'to' param is required\")\r\n\r\n this.isFetching = true\r\n apiService.Withholding.getGeneratedTxts(from, to).then(data =>{\r\n if(data) this.txts = data\r\n }).finally(()=>this.isFetching = false)\r\n .catch((err)=>console.log(err))\r\n }\r\n\r\n reset(){\r\n this.txt = []\r\n this.isFetching = true\r\n this.isGenerating = false\r\n }\r\n}\r\n\r\ndecorate(withholdingsStore, {\r\n isFetching: observable,\r\n isGenerating: observable,\r\n createTxt: action,\r\n reset: action,\r\n fetchTxts: action\r\n})\r\n\r\nexport default new withholdingsStore();\r\n\r\n","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Row, Col, Button } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt'\r\n\r\nconst GenerateButton = ({ txtStore: store}) => {\r\n const { t } = useTranslation()\r\n\r\n function handleGenerateClick() {\r\n const resp = window.confirm(t('really_want_to_generate_txt?'))\r\n if(resp) store.createTxt()\r\n }\r\n\r\n return (\r\n \r\n \r\n {store.isGenerating && }\r\n {!store.isGenerating &&\r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nexport default inject('txtStore')(observer(GenerateButton))","import React from 'react'\r\nimport { Button, Form, Col } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { useForm } from 'react-hook-form'\r\nimport * as yup from 'yup';\r\nimport Moment from 'moment'\r\nimport ErrorMessage from 'Components/ErrorMessage'\r\n\r\n\r\nconst validationSchema = yup.object().shape({\r\n dateFrom: yup.string().required(),\r\n dateTo: yup.string().required(),\r\n});\r\n\r\nconst Filter = inject(\"txtStore\")(observer(({ txtStore: store }) => {\r\n const defaultDateFrom = Moment().startOf('month').format('YYYY-MM-DD')\r\n const defaultDateTo = Moment().endOf('month').format('YYYY-MM-DD')\r\n\r\n const { t } = useTranslation()\r\n\r\n const { register, handleSubmit, errors } = useForm({ validationSchema: validationSchema })\r\n\r\n function onSubmit(data) {\r\n store.fetchTxts(data.dateFrom, data.dateTo)\r\n }\r\n\r\n return (
\r\n
\r\n \r\n \r\n \r\n {t('date_from')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('date_from')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
)\r\n}))\r\n\r\nexport default Filter","import React, { useState } from 'react'\r\nimport { OverlayTrigger, Tooltip } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinnerAlt from 'Components/LoadingSpinnerAlt'\r\nimport txtStore from 'stores/txtStore'\r\n\r\nconst Actions = ({txt}) => {\r\n const { t } = useTranslation()\r\n\r\n const [isDownloading, setIsDownloading] = useState(false)\r\n\r\n function download(){\r\n setIsDownloading(true)\r\n txtStore.downloadTxt(txt.GenerateNumber)\r\n .finally(()=>setIsDownloading(false))\r\n }\r\n\r\n return (
\r\n <>\r\n {isDownloading && \r\n
\r\n \r\n
}\r\n {!isDownloading && \r\n {t('download')}\r\n \r\n }\r\n >\r\n \r\n }\r\n \r\n
)\r\n}\r\n\r\nexport default Actions","import React from 'react'\r\nimport { Table } from 'react-bootstrap'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { inject, observer } from 'mobx-react'\r\nimport Actions from './Actions'\r\nimport Utilities from 'Utilities'\r\n\r\nconst TxtsTable = inject(\"txtStore\")(observer(({ txtStore: store }) => {\r\n const { t } = useTranslation()\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {store.txts.map(txt =>{\r\n return \r\n \r\n \r\n \r\n \r\n })}\r\n \r\n
{t('date_generated')}{t('number')}{t('actions')}
{Utilities.TransformDateTime(txt.DateGenerate)}{txt.GenerateNumber}
)\r\n}))\r\n\r\nexport default TxtsTable","import React from 'react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport useTitle from 'hooks/useTitle'\r\nimport { inject, observer } from 'mobx-react'\r\nimport Table from './Table'\r\n\r\nconst ListRender = inject(\"txtStore\")(observer(({ txtStore: store }) => {\r\n const { t } = useTranslation()\r\n useTitle('txt_file')\r\n\r\n if(store.isFetching) return \r\n\r\n if(store.txts.length === 0) {\r\n return

{t('no_txt_files_on_that_data_range')}

\r\n }\r\n\r\n return \r\n}))\r\n\r\nexport default ListRender","import React, { useEffect } from 'react'\r\nimport useTitle from 'hooks/useTitle'\r\nimport txtStore from 'stores/txtStore'\r\nimport { Provider, inject, observer } from 'mobx-react'\r\nimport GenerateButton from './GenerateButton'\r\nimport Filter from './Filter'\r\nimport ListRender from './ListRender'\r\nimport Moment from 'moment'\r\n\r\nconst TxtList = inject(\"txtStore\")(observer(({ txtStore: store }) => {\r\n const defaultDateFrom = Moment().startOf('month').format('YYYY-MM-DD')\r\n const defaultDateTo = Moment().endOf('month').format('YYYY-MM-DD')\r\n\r\n useTitle('txt_file')\r\n\r\n useEffect(() => {\r\n store.fetchTxts(defaultDateFrom, defaultDateTo)\r\n return () => {\r\n store.reset()\r\n }\r\n })\r\n\r\n return (
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
)\r\n}))\r\n\r\nexport default (() => {\r\n return \r\n})","import React from 'react'\r\nimport { Redirect} from 'react-router-dom'\r\nimport { inject, observer } from 'mobx-react';\r\nimport { LOGIN } from \"../Constants/Routes\";\r\n\r\nconst PrivateRoute = ({userStore, companyStore, Component, mustHaveSelectedCompany = false}) => {\r\n return(\r\n
\r\n {(userStore.currentUser && userStore.currentUser.token) === undefined || \r\n (mustHaveSelectedCompany && companyStore.selectedCompany === undefined) ? \r\n :
{Component}
\r\n }\r\n
\r\n )\r\n}\r\n\r\nexport default inject(\"userStore\",\"companyStore\")(observer(PrivateRoute))","import React, {Component} from 'react'\r\nimport { Redirect} from 'react-router-dom'\r\nimport { inject, observer } from 'mobx-react';\r\nimport { COMPANY_SELECTION } from \"../Constants/Routes\";\r\n\r\nclass AdminRoute extends Component{\r\n render(){\r\n\r\n const {companyStore} = this.props;\r\n return(\r\n
\r\n {companyStore.selectedCompany !== undefined && companyStore.selectedCompany.isThirdParty === false ?
{this.props.Component}
: }\r\n
\r\n )\r\n }\r\n}\r\n\r\nexport default inject(\"companyStore\")(observer(AdminRoute))","import React from 'react'\r\nimport { Navbar } from 'react-bootstrap'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Link } from 'react-router-dom'\r\nimport { SETTINGS } from 'Constants/Routes'\r\n\r\nconst SNavbar = ({ userStore, authStore, uiStore }) => {\r\n\r\n return (\r\n \r\n
uiStore.toggleSidebar()} \r\n className=\"h-100 btn d-flex align-items-center sidebar-toggler\">\r\n \r\n
\r\n
    \r\n {/*
  • */}\r\n
  • \r\n
    \r\n
  • \r\n
  • \r\n \r\n
    \r\n \r\n
  • \r\n
  • \r\n
    authStore.logout()}>\r\n \r\n
    \r\n
  • \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default inject('userStore', 'authStore', 'uiStore')(observer(SNavbar))","import React from 'react'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Responsive } from 'responsive-react';\r\n\r\nconst SLink = ({ children, uiStore }) => {\r\n return (<>\r\n \r\n
uiStore.closeSidebar()}>\r\n {children}\r\n
\r\n
\r\n \r\n
\r\n {children}\r\n
\r\n
\r\n \r\n )\r\n}\r\n\r\nexport default inject(\"uiStore\")(observer(SLink))","import React from 'react'\r\nimport './index.scss'\r\nimport './index.css'\r\nimport { LOGO_URL } from 'Constants/Media'\r\nimport { inject, observer } from 'mobx-react'\r\nimport { Link } from 'react-router-dom'\r\nimport { useTranslation } from 'react-i18next'\r\nimport {\r\n APP,\r\n INVOICES_LIST,\r\n INVOICES_ADD,\r\n PROVIDERS_LIST,\r\n WITHHOLDINGS_GENERATION,\r\n WITHHOLDINGS_LIST,\r\n REPORTS_PURCHASELEDGER,\r\n TXT_SECTION,\r\n SETTINGS\r\n}\r\n from 'Constants/Routes'\r\nimport SLink from './SLink'\r\n// Hay que ajustar DropDown a como está en vsap\r\n//import DropDown from './DropDown'\r\nimport {Responsive} from 'responsive-react'\r\n\r\nconst SSidebar = ({ uiStore, userStore, companyStore, authStore }) => {\r\n const { t } = useTranslation()\r\n\r\n function goToCompanySelection() {\r\n companyStore.fogetSelectedCompany()\r\n }\r\n\r\n function closeSidebar(){\r\n uiStore.closeSidebar()\r\n }\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \"logo\"\r\n \r\n \r\n {userStore.currentUser.EMail}
\r\n {companyStore.selectedCompany.BusinessName}
\r\n
\r\n
\r\n
  • \r\n \r\n \r\n \r\n {t('dashboard')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('generate_withholding')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('list_of') + ' ' + t('withholdings')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('add_invoice')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('list_of') + ' ' + t('invoices')}\r\n \r\n \r\n
  • \r\n\r\n
  • \r\n \r\n \r\n \r\n {t('list_of') + ' ' + t('providers')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('purchase_ledger')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('txt_file')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('select') + ' ' + t('company')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('settings')}\r\n \r\n \r\n
  • \r\n
  • \r\n \r\n \r\n \r\n {t('log_out')}\r\n \r\n \r\n
  • \r\n
    \r\n
    \r\n )\r\n}\r\n\r\nexport default inject(\"uiStore\", \"userStore\", \"companyStore\", \"authStore\")(observer(SSidebar))","import ErrorMessage from 'Components/ErrorMessage'\r\nimport LoadingSpinner from 'Components/LoadingSpinner'\r\nimport useStores from 'hooks/useStores'\r\nimport useTitle from 'hooks/useTitle'\r\nimport React, { useState } from 'react'\r\nimport { Button, Form } from 'react-bootstrap'\r\nimport { useForm } from 'react-hook-form'\r\nimport { useTranslation } from 'react-i18next'\r\nimport Service from 'Service'\r\nimport * as yup from 'yup';\r\n\r\nconst Settings = () => {\r\n const { t } = useTranslation()\r\n useTitle(t('settings'))\r\n const { companyStore, uiStore } = useStores()\r\n const [isLoading, setIsLoading] = useState(false)\r\n\r\n const validationSchema = yup.object().shape({\r\n Correlative: yup.number().required(),\r\n });\r\n\r\n const { register, handleSubmit, errors } = useForm({ validationSchema: validationSchema });\r\n\r\n function onSubmit(data: any) {\r\n setIsLoading(true)\r\n Service.Settings.changeCorrelativeWithholding(data.Correlative).then((res) => {\r\n companyStore.updateCompanyCurrentCorrelative(data.Correlative)\r\n uiStore.addNotification(uiStore.appNotifications.SUCCESS_SETTINGS_CHANGED)\r\n }).catch((err) => {\r\n if (err.response.status === 400) {\r\n uiStore.addNotification(uiStore.appNotifications.INVALID_CORRELATIVE)\r\n return\r\n }\r\n if (err.response.status === 404) {\r\n throw new Error(\"Invalid correlative change attempt: company not found\");\r\n }\r\n throw err\r\n }).finally(() => setIsLoading(false))\r\n }\r\n\r\n return
    \r\n

    {t('settings')}

    \r\n
    \r\n
    \r\n \r\n {t('correlative')}\r\n \r\n \r\n \r\n \r\n \r\n {isLoading && }\r\n \r\n
    \r\n \r\n
    \r\n}\r\n\r\nexport default Settings","import React from 'react'\r\nimport { Redirect } from 'react-router-dom'\r\nimport { inject, observer } from 'mobx-react';\r\nimport {\r\n APP,\r\n LOGIN,\r\n DASHBOARD,\r\n COMPANY_SELECTION,\r\n PENDING_INVITATIONS,\r\n WITHHOLDINGS_GENERATION,\r\n INVOICES_LIST,\r\n PROVIDERS_LIST,\r\n PROVIDERS_EDIT,\r\n INVOICES_ADD,\r\n WITHHOLDINGS_LIST,\r\n REPORTS_PURCHASELEDGER,\r\n COMPANY_SETTINGS,\r\n TXT_SECTION,\r\n TXT_GENERATE,\r\n SETTINGS,\r\n INVOICES_EDIT\r\n} from 'Constants/Routes'\r\nimport Dashboard from 'Pages/Dashboard'\r\nimport CompanySelection from 'Pages/Companies/Selection'\r\nimport InvoiceRegister from 'Pages/Invoices/Register'\r\nimport InvoiceEdit from 'Pages/Invoices/Edit'\r\nimport PendingInvitations from 'Pages/PendingInvitations'\r\nimport WithholdingGeneration from 'Pages/Withholding/Generation'\r\nimport InvoicesList from 'Pages/Invoices/List'\r\nimport ProvidersList from 'Pages/Providers/List'\r\nimport ProvidersEdit from 'Pages/Providers/Edit'\r\nimport WithholdingList from 'Pages/Withholding/List'\r\nimport PurchaseLedger from 'Pages/Reports/PurchaseLedger'\r\nimport CompanySettings from 'Pages/Companies/Settings'\r\nimport TxtList from 'Pages/Txt/List'\r\nimport TxtGenerate from 'Pages/Txt/List'\r\n\r\nimport { Route, Switch } from 'react-router-dom'\r\nimport LoadingSpinner from './LoadingSpinner'\r\nimport PrivateRoute from './PrivateRoute'\r\nimport AdminRoute from './AdminRoute'\r\nimport SNavbar from 'Components/SNavbar'\r\nimport SSidebar from 'Components/SSidebar'\r\nimport Settings from 'Pages/Settings'\r\nimport { Container } from 'react-bootstrap'\r\n\r\nconst AppInside = ({ userStore, uiStore, companyStore, authStore }) => {\r\n\r\n if (authStore.inProgress) {\r\n return (\r\n
    \r\n \r\n
    \r\n )\r\n }\r\n\r\n if (!userStore.currentUser || !userStore.currentUser.token) {\r\n return \r\n }\r\n\r\n if (!companyStore.selectedCompany) {\r\n return <>\r\n \r\n \r\n } />\r\n } />\r\n \r\n \r\n \r\n \r\n }\r\n\r\n return (\r\n <>\r\n
    \r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n } />} />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n \r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n )\r\n}\r\n\r\nexport default inject(\"userStore\", \"uiStore\", \"companyStore\", \"authStore\")(observer(AppInside))","import React from 'react';\r\nimport './App.scss';\r\nimport { BrowserRouter as Router, Switch, Route, Redirect } from \"react-router-dom\";\r\nimport { APP, LOGIN } from './Constants/Routes'\r\nimport Login from './Pages/Login'\r\nimport AppInside from './Components/AppInside'\r\nimport ReactNotification from 'react-notifications-component'\r\n\r\nconst App = () => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n
    )\r\n}\r\n\r\n\r\nexport default App;\r\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}\n","// Este archivo se mantiene para compatibilidad temporal\r\n// Borrar este archivo ahora provocaría problemas en el componente\r\n// que se usa para mostrar las invitaciones, el cual tampoco esta terminado\r\n// pero debe mantenerse mientras tanto para evitar que la app crashee\r\n// Este archivo no hace ninguna función en la app actual\r\nimport { decorate, observable, action } from 'mobx';\r\n\r\nclass CommonStore {\r\n user = undefined\r\n memberships = undefined\r\n invitations = undefined\r\n company = undefined\r\n\r\n setUser(user) {\r\n this.user = user;\r\n }\r\n\r\n setMemberships(memberships){\r\n this.membership = memberships\r\n }\r\n\r\n setCompany(company){\r\n this.company = company\r\n }\r\n\r\n setInvitations(invitations){\r\n this.invitations = invitations\r\n }\r\n}\r\n\r\ndecorate(CommonStore,{\r\n user: observable,\r\n membership: observable,\r\n invitations: observable,\r\n company: observable,\r\n setUser: action,\r\n setMemberships: action,\r\n setCompany: action,\r\n})\r\n\r\nexport default new CommonStore();","import CommonStore from './commonStore'\r\nimport companyStore from './companyStore'\r\nimport userStore from './userStore'\r\nimport authStore from './authStore'\r\nimport configurationStore from './configurationStore'\r\nimport invoicesStore from './invoicesStore'\r\nimport providersStore from './providersStore'\r\nimport withholdingsStore from './withholdingsStore'\r\nimport uiStore from './uiStore'\r\nimport membershipsStore from './membershipsStore'\r\nimport dashboardStore from './dashboardStore'\r\n\r\nexport default {\r\n companyStore,\r\n userStore,\r\n CommonStore,\r\n authStore,\r\n configurationStore,\r\n invoicesStore,\r\n providersStore,\r\n withholdingsStore,\r\n uiStore,\r\n membershipsStore,\r\n dashboardStore\r\n}","import * as yup from 'yup';\r\n\r\ndeclare module 'yup' {\r\n interface StringSchema {\r\n numbers(): StringSchema;\r\n }\r\n}\r\n\r\n\r\nyup.setLocale({\r\n mixed: {\r\n default: 'validations:field_is_invalid',\r\n required: 'validations:field_is_required',\r\n oneOf: ({ values }) => ({ key: 'validations:must_be_one_of_following_values', values: { values } }),\r\n notOneOf: ({ values }) => ({ key: 'validations:must_not_be_one_of_following_values', values: { values } }),\r\n notType: 'validations:incorrect_type',\r\n defined: 'validations:must_be_defined'\r\n },\r\n string: {\r\n length: ({ length }) => ({ key: 'validations:characters_length_must_be_exactly', values: { length } }),\r\n min: ({ min }) => ({ key: 'validations:minimun_required_characters', values: { min } }),\r\n max: ({ max }) => ({ key: 'validations:maximun_allowed_characters', values: { max } }),\r\n matches: 'validations:must_match_expected_pattern_pattern',\r\n email: 'validations:must_be_an_email',\r\n url: 'validations:must_be_a_valid_url',\r\n uuid: 'validations:must_be_a_valid_uuid',\r\n trim: 'validations.must_be_a_trimed_string',\r\n lowercase: 'validations:must_be_lowercase',\r\n uppercase: 'validations:must_be_uppercase',\r\n },\r\n number: {\r\n min: ({ min }) => ({ key: 'validations:value_must_be_greater_or_equal', values: { min } }),\r\n max: ({ max }) => ({ key: 'validations:value_must_be_less_or_equal', values: { max } }),\r\n lessThan: ({ less }) => ({ key: 'validations:value_must_be_less_than', values: { less } }),\r\n moreThan: ({ more }) => ({ key: 'validations:value_must_be_more_than', values: { more } }),\r\n notEqual: ({ notEqual }) => ({ key: 'validations:value_must_not_be_equal_to', values: { notEqual } }),\r\n positive: 'validations:value_must_be_positive_number',\r\n negative: 'validations:value_must_be_negative_number',\r\n integer: 'validations:value_must_be_interger',\r\n },\r\n date: {\r\n min: ({ min }) => ({ key: 'validations:date_must_be_later', values: { min } }),\r\n max: ({ max }) => ({ key: 'validations:date_must_be_earlier', values: { max } }),\r\n },\r\n object: {\r\n noUnknown: ({ unknown }) => ({ key: 'validations:object_has_unspecified_key', values: { unknown } }),\r\n },\r\n array:{\r\n min: ({ min }) => ({ key: 'validations:array_must_have_minimun_items', values: { min } }),\r\n max: ({ max }) => ({ key: 'validations:array_must_have_maximun_items', values: { max } }),\r\n }\r\n})\r\n\r\n\r\nyup.addMethod(yup.string, 'numbers', function () {\r\n return this.matches(/^[0-9]*$/g, 'validations:field_numbers_only')\r\n})\r\n\r\n","import authStore from \"stores/authStore\";\r\nimport commonStore from \"stores/commonStore\";\r\nimport userStore from \"stores/userStore\";\r\nimport uiStore from \"stores/uiStore\";\r\nimport companyStore from \"stores/companyStore\"\r\nimport providersStore from \"./providersStore\";\r\nimport withholdingsStore from \"./withholdingsStore\";\r\nimport invoicesStore from \"./invoicesStore\";\r\nimport configurationStore from \"./configurationStore\";\r\nimport emailSendModalStore from \"./Components/emailSendModalStore\";\r\n\r\nclass RootStore {\r\n authStore: typeof authStore;\r\n commonStore: typeof commonStore;\r\n userStore: typeof userStore;\r\n uiStore: typeof uiStore;\r\n companyStore: typeof companyStore;\r\n providersStore: typeof providersStore;\r\n withholdingsStore: typeof withholdingsStore;\r\n invoicesStore: typeof invoicesStore\r\n configurationStore: typeof configurationStore;\r\n emailSendModalStore: typeof emailSendModalStore\r\n\r\n constructor(){\r\n this.authStore = authStore\r\n this.commonStore = commonStore\r\n this.userStore = userStore\r\n this.uiStore = uiStore\r\n this.companyStore = companyStore\r\n this.providersStore = providersStore\r\n this.withholdingsStore = withholdingsStore\r\n this.invoicesStore = invoicesStore\r\n this.configurationStore = configurationStore\r\n this.emailSendModalStore = emailSendModalStore\r\n }\r\n}\r\n\r\nexport default new RootStore()","import React, { Suspense } from 'react'\r\nimport ReactDOM from 'react-dom'\r\nimport App from './App'\r\nimport * as serviceWorker from './serviceWorker'\r\nimport './i18n'\r\nimport stores from './stores'\r\nimport { Provider } from 'mobx-react'\r\nimport './yup-custom'\r\nimport StoresContext from 'Contexts/StoresContext'\r\nimport RootStore from 'stores/RootStore'\r\n\r\n\r\nfunction setAppAndVersionOnLs() {\r\n localStorage.setItem('84929976-3de4-4670-8434-d97312b3256c', process.env.REACT_APP_NAME)\r\n localStorage.setItem('60318a0c-69cc-474a-bc19-010507c1127f', process.env.REACT_APP_VERSION)\r\n}\r\n\r\nconst lsAppName = localStorage.getItem('84929976-3de4-4670-8434-d97312b3256c')\r\nconst lsAppVersion = localStorage.getItem('60318a0c-69cc-474a-bc19-010507c1127f')\r\n\r\nif (lsAppName === null || lsAppVersion === null) {\r\n stores.authStore.logout()\r\n setAppAndVersionOnLs()\r\n}\r\nif (process.env.REACT_APP_NAME !== lsAppName || process.env.REACT_APP_VERSION !== lsAppVersion) {\r\n stores.authStore.logout()\r\n setAppAndVersionOnLs()\r\n}\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n }>\r\n \r\n \r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n\r\n"],"sourceRoot":""}