Giter Club home page Giter Club logo

Comments (15)

sciux avatar sciux commented on May 24, 2024

Ok, i think i found the line of code where partially the issue is
in logicposshared/app/settingsapp.cs*
Line 54 //Defaults if not defined in config
55 public static Guid XpoOidConfigurationCountryPortugal = new Guid( UTF-16 code for Portugal)
56 public static string XpoOidConfigurationCountryPortugalCode2 = "PT";

So i can manually change UTF-16 from db to any country i want, but issue still remains. Because entering country in config just gets voided all the time and regardless what i do always defaults to those settings.
Same happens even if i download exe from LogicPos website...

If anyone could kindly help me would be great :), ill keep trying, but after so many days i feel like im going a bit crazy now :)
Thank you

from logicpos.

koakh avatar koakh commented on May 24, 2024

Hello
Do you already try to change the system country and country code in App.config with your desire country oid and country code2?

from logicpos.

sciux avatar sciux commented on May 24, 2024

yes i have done that, that was the first thing i have done.

from logicpos.

sciux avatar sciux commented on May 24, 2024

what i also noticed, after i manually changed in logicposshared/app/settingsapp.cs*
public static Guid XpoOidConfigurationCountryPortugal = new Guid (added US UTF code)
static string XpoOidConfigurationCountryPortugalCode2 = "US"
when i rebuilt project pospayment dialog window default country changed to United States.
But since im currently living in Thailand i changed guid code to thailands and code2 to TH
wiped my sql dtb wiped debug folder rebuild project + plugins
launch project setup company in Thailand go to payment window and default now sits at United States, :))
i have a feeling that it is linked with final consumer customer.
So maybe if code was set up to build final consumer customer card in the database equal to the initial setup country that might work, because at the moment it is set up to always build final consumer customer in Portugal on database.

Ill try changing final consumer and XpoOidConfigurationCountryPortugal both to Thailand and see if that makes a difference.

Thank you and sorry if i talk some rubbish my coding skills are very limited but after 5 days looking at this code im starting to understand a little bit :),
Thank you

from logicpos.

sciux avatar sciux commented on May 24, 2024

it worked.
So what i have done now
logicposshared/app/settingsapp.cs*
//Defaults if Not Defined in Config
public static Guid XpoOidConfigurationCountryPortugal = new Guid("56ce21f9-4456-4e3c-90a6-7b896fada32e");
public static string XpoOidConfigurationCountryPortugalCode2 = "TH";
public static Guid XpoOidConfigurationCurrencyEuro = new Guid("d8d349e7-39b8-4298-963f-6233e5383a88");
public static cfg_configurationcurrency ConfigurationSystemCurrency = null;//Assigned on InitPlataformParameters()
country Guid code is thailand
currency Guid code is Thai Baht (i manually added this since it was not there)

logicpos/resources/database/data/default/en/database.sql

INSERT INTO erp_customer (Oid,Ord,Code,CodeInternal,Name,FiscalNumber,CardNumber,Address,Locality,ZipCode,City,Country,Discount,PriceType,CustomerType) VALUES ('56ce21f9-4456-4e3c-90a6-7b896fada32e',10,10,'0cf40622-578b-417d-b50f-e945fe','Walkin','999999990',NULL,'Desconhecido','Desconhecido','1000-000','Indefinido','bb5dfffe-5bcc-4a8c-8c3c-f693413c24e4',0,'cf17a218-b687-4b82-a8f4-0905594ac1f5','a4b3811f-9851-430d-810e-f8be7ac3f392');

changed country code to Thailand
and done the same on resources/database/database.sql, because i wasn't sure which one get populated on MySql.

now when i open paymentdialog window default country is Thailand.
question is why is it not normally based on the country that project is set to be build in app.config, because that is what the code suggest that it should be doing.
I believe this is to do with customer card and if you could put a line of code to create customer card with locality that is in app.config that might just solve the issue.

from logicpos.

sciux avatar sciux commented on May 24, 2024

solved how to make country default, but now got a new problem when completing transaction choose cash as a payment option press ok at the bottom and again ok on paymentdialog error comes up (System.NullReferenceException: 'Object reference not set to an instance of an object.')
debug error message:
//Only persist Customer Details If is (! Simplified Invoice) AND (! FinalConsumer (in Invoices for ex))
if (
(
// documentFinanceMaster.DocumentType.Oid != SettingsApp.XpoOidDocumentFinanceTypeSimplifiedInvoice && /* IN009076 - FS is not saving customer data */
customer.Oid != FrameworkUtils.GetFinalConsumerEntity().Oid
)
||
//Or If not in Portugal AND (! FinalConsumer (in Invoices for ex))
(
SettingsApp.XpoOidConfigurationCountryPortugal != SettingsApp.ConfigurationSystemCountry.Oid &&
customer.Oid != FrameworkUtils.GetFinalConsumerEntity().Oid
)
//Required Oids for Equallity Check
//Commented to save details if is a Hidden Customer, Diferent from FinalConsumerEntity
//&& !FrameworkUtils.IsFinalConsumerEntity(customer.FiscalNumber)
)
clearly finalconsumer is linked with invoices and making it to be in the same country as software not any good... its like setting everything up in portugal and acme plugin kicks in etc....

from logicpos.

koakh avatar koakh commented on May 24, 2024

awesome you made it!
to help you I must compile and run the code, and have time, but like I said I'm not working on this project anymore, try to get help from logicuplse team, and if they can't support you maybe I can help you, when I have time,

from logicpos.

sciux avatar sciux commented on May 24, 2024

thanks again,
I did email logicpulse about a week ago asking for some ideas, had no replies so far, but since its open source and free software i didn't have much expectation :)...
i know it is not relevant and nothing to do with a code, but i have approx. 15 years experience in restaurants and hotels both FOH and BOH. I used to work for a large company so their IT systems did work good more or less with obvious limitations to prevent mostly human errors.
never the less i ended now moving to Thailand and we ended up owning a resort with restaurant so i decided to make a POS modern touchscreen till point, because they still use scraps of paper to write orders etc. And because i have enormous amounts of time on my hands sitting at home this idea seemed like a good one until it came to software part.
Majority of software available online are based on using web browser to access POS, or apks on mobile devices. Neither of those options sounded good to me. I wanted something that is in a form of software on a pc running windows with maybe options of adding mobile devices etc.
so i found a large variety of options most of them are "free" but functions like stock management or holding order are disabled and you have to pay to activate them.
Others i came across were open source similar type to yours, but they lacked modern look (looked like something from Win95 with grey bars and sliders. Or had pay screen where buttons were tiny or not even exist at all.
So after trying probably about 30 POS softwares i came across this on, and to me it looked exactly what i was looking for had restaurant functions like table management, stock management, easy reports, stunning modern UI and most importantly its free and open source. So there's me never programmed nothing :) ill take it on and make it happen :D. Im alright looking at the code i have a rough idea what is going on, i can probably edit adjust things break the code redownload and try again :)).

Anyway i totally understand you no longer working on this project. Never the less if you do end up being free and bored some day have a quick peek :) and me well ill work something out on it.
Have a great day

from logicpos.

koakh avatar koakh commented on May 24, 2024

Contact me to [email protected] and I try to help, but I warn that I dont have any free time

from logicpos.

EloneSampaio avatar EloneSampaio commented on May 24, 2024

@sciux I am working on this project by myself and I am having the same problems as you, we can work together so we can succeed in the modifications that need to be done in the system. can you give me your email so we can talk ?

from logicpos.

sciux avatar sciux commented on May 24, 2024

Hi Elone,

My email is [email protected]

send me an email, i worked out some things, but i also realized that this software is not as open source as id like to believe it is.
Although source code is here on git, never the less there are some plugins that are deeply integrated within software. One of those plugins is financial plugin and as a result the receipt printed is like half a mile long with 60% of information on that receipt is not necessary and to be frank waste of paper.
never the less send me an email and ill try to help you out with as much as i managed to find on my own.

from logicpos.

koakh avatar koakh commented on May 24, 2024

from logicpos.

sciux avatar sciux commented on May 24, 2024

could not have said it better myself :).
Indeed it is a lot easier to comment things out or remove then it is to add something. But i find that whole Pt SAFT-PT is very heavily integrated across many parts of code and it would be extremely difficult without having good knowledge of particular code to identify every line that needs to be commented out.

from logicpos.

koakh avatar koakh commented on May 24, 2024

from logicpos.

mamounjamous avatar mamounjamous commented on May 24, 2024

I am trying to compile and build this code and faced several issues. anyone here who could help with guidance?
Really appreciate it.

from logicpos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.