
Originally Posted by
jamie2k
Hi James :) nice mod by the way...
I have installed the mod and get exports ok:)
I am interested, and have emailed you, reference the bespoke app for upload and download etc ...
I also have an issue:-
When looking at sales.csv file
I get codes 1250 as i have setup in config - this is correct for Paypal / credit cards
I get 999 instead of 1200 for cheque / money order - this is not correct and does not agree with my config, which is set as 1200 (this i wil need to change as this nominal code is for bank account in my sage)
Can you advise on this please.?
Also i would like to be able to assign new codes for different payment methods... is this something you can advise on or point me in the right direction with files / code etc ???
Kind regards and thanks in advance,
Jamie 2K
Hi Jamie,
Haven't got your email, perhaps send again? Software makes life much easier and can be used directly from your desktop, so no need for accounts people to have to go onto your site.
999 means that a code hasn't been specified for that particular transaction type, check your settings again, if still probs i can have a look further.
Yep you can add new codes for different payament types, look in the sage.php file around line 290, should have the following code
Code:
############################################### identify payment type
$paytype=$orders->fields['payment_method'];
switch ($paytype) {
case "Paypal IPN":
$purchacc = SAGE_PAYPAL;
break;
case "Paypal":
$purchacc = SAGE_PAYPAL;
break;
case "Credit Card":
$purchacc = SAGE_PAYPAL;
break;
case "Credit Card / Paypal":
$purchacc = SAGE_PAYPAL;
break;
case "Credit Card/ Paypal":
$purchacc = SAGE_PAYPAL;
break;
case "Cheque/Money Order":
$purchacc = SAGE_CHEQ;
break;
default:
$purchacc = 999;
}
Each of the case types above in the speech marks is case and character sensitive, so be care to include it EXACTLY how it is on your setup, spaces and all!
To add more case statements for each of your types.
i.e if you have a payment type "apples", and code in sage is 1205 then add
Code:
case "apples":
$purchacc = 1205;
break;
before the line
Code:
default:
$purchacc = 999;
Hope that helps.

Originally Posted by
jamie2k
just a little addition to my last post...
Can you explain the import process you use, as the file i have is not importing correctly when run against a customer record import.
regards
Jamie 2K
If you're just doing sales, then import as "audit trail transaction" file in sage
If doing stock then it is "stock transactions"
Kind regards
James