lavaloon-eg / ksa_compliance

KSA Compliance App for KSA E-invoice
https://www.lavaloon.com/
GNU Affero General Public License v3.0
37 stars 28 forks source link

Error Creating New Company #153

Closed EmkanDevs closed 3 days ago

EmkanDevs commented 5 days ago

Hello,

While trying to create a new company we are getting the following message.

Message Error: Value missing for Mode of Payment: ZATCA Payment Means Code

This was not an issue before the installation of the app.

Help would be appreciated.

mhaggag commented 5 days ago

Hello,

The app adds a custom field to mode of payment that defines the equivalent payment means code for ZATCA. When an invoice references a mode of payment, it's translated to the equivalent payment means code when generating XML for ZATCA, so the field is required.

The error is happening because creating a company adds its default account to the list of accounts in the relevant modes of payment; when trying to save the mode of payment after adding the account, it discovers the missing field value.

Please update your modes of payment using this reference for the payment means codes, e.g. cash is 10, bank card is 48.

We'll look into adding this to the prerequisites

EmkanDevs commented 5 days ago

Assigned the values as follows: Bank Draft = 21 (Banker's Draft) Credit Card = 54 Cheque = 20 Cash = 10

However, couldn't figure out what the value should be for Wire Transfer...?

Your assistance is greatly appreciated.

mhaggag commented 3 days ago

I think the right code for that is 30 for "Credit Transfer", based on Wikipedia's Wire transfer page.

EmkanDevs commented 3 days ago

Could you please highlight where that was mentioned on the page...? I tried reviewing but couldn't figure out where the code was mentioned...

Thank you.

mhaggag commented 3 days ago

Wikipedia mentions three names for wire transfer:

Wire transfer, bank transfer, or credit transfer, is a method of electronic funds transfer from one person or entity to another.

Searching for credit transfer in the codes, we find 30

EmkanDevs commented 3 days ago

Thank you very much! Much appreciated.