I was wondering if there is an automatic way of applying the information so that you can avoide the dynamic problem, when adding payment on an invoice from a customer.
The problem is that if you have to set accounts and everything else to do these sorts of transactions.
You would have to have a definition of your account settings in other systems that you want to connect to E-conomics, and you can not do it in a general settings because of the dynamic settings in E-conomics.
You have a POS system in a pizza place, or other type of store and the store owner is not an E-conomics shark (nor am i at this point)
Any way to simplify matters. This customer that purchased the POS system now have 3 standard customers in E-conomics and they are as follows.:
1 Cash customer
1 Credit card customer
1 Gift certificate customer.
As the day rings to an end the POS user does a z-out on the cash register (POS) system and the system creates (x) no. of invoices in E-conomics - 1 per customer according to the payments on the cash register
We have 1500 in cash payment and 200 on creditcard
So at the end of the day I add 2 invoices to E-conomics.
One for the cash payment and one for the credicard payment and then I would have to apply these invoices to the system so that it shows up in the right accounts and we do not have a problem with the accountant.
How ever you can do the DebitorPayment settings in the Cashbook controls of E-conomics and there every thing with the dynamic data works because you have predefined it in E-conomics and because you do it on the E-conomics site it works.
But will this also work when using the programming interface or ?
One senario in Sudo code could be
[code=php:2ftrb84g]Customer = Economics-getDebtorByName('Cash Customer');Service = Economics-getProductByName('Sold goods');Economics-AddInvoice(Customer,Service,Amount);Customer = Economics-getDebtorByName('Credit Customer');Service = Economics-getProductByName('Sold goods');Economics-AddInvoice(Customer,Service,Amount);$Customer = Economics-getDebtorByName('Gift certificate Customer');$Service = Economics-getProductByName('Sold goods');Economics-AddInvoice(Customer,Service,Amount);$AllInvoices = Economics-debtor-getAllOrdersByDebtor('Cash Customers');Ecomnomics-cashBookEntryData-Create(cashBookEntryTypedebtorPayment,cashBook,AllInvoicesdebtor);ETC