existing sales order mark as paid in cashbook by using Api  Topic is solved

Discussions relating to the REST API of Jiwa 7.

existing sales order mark as paid in cashbook by using Api

Postby kranil7701 » Thu Dec 14, 2023 2:02 pm

Hello , I want existing sales order mark as paid in cashbook by using Api.
Please let me know is there any api.
Thanks
kranil7701
Occasional Contributor
Occasional Contributor
 
Posts: 24
Joined: Tue Oct 31, 2023 1:03 pm

Re: existing sales order mark as paid in cashbook by using

Postby SBarnes » Thu Dec 14, 2023 4:19 pm

There is a section on the sales order called payments, the structure is shown below having this on the sales order structure will create a cashbook entry for the payment, I know this works for sales order post route, I have never tried it for an existing one with a patch, if you don't specify the payment type it will use the default type.

Code: Select all
  "Payments": [
    {
      "HistoryNo": 0,
      "PaymentType": {
        "PaymentTypeID": "string",
        "Name": "string",
        "Code": "string",
        "ItemNo": 0,
        "IsEnabled": true,
        "IsDefault": true,
        "IsCreditCard": true,
        "IsPOS": true,
        "GeneralLedgerAccount": {
          "LedgerID": "string",
          "AccountNo": "string",
          "Description": "string"
        }
      },
      "AmountPaid": 0,
      "PaymentDate": "2023-12-14T05:07:27.069Z",
      "ProcessPayment": true,
      "AuthorisationStatus": "string",
      "PaymentGatewayReturnCode": 0,
      "Processed": true,
      "CardExpiry": "2023-12-14T05:07:27.069Z",
      "PaymentID": "string",
      "PaymentRef": "string",
      "AuthorisationNumber": "string",
      "PaymentGatewayReturnMessage": "string",
      "CardNumber": "string",
      "CardHolder": "string",
      "BankName": "string",
      "BSBN": "string",
      "BankAcc": "string",
      "AccountName": "string"
    }
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1646
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 182

Re: existing sales order mark as paid in cashbook by using  Topic is solved

Postby Mike.Sheen » Thu Dec 14, 2023 5:17 pm

You really don't ever "mark" or flag a sales order as paid in Jiwa.

Processing a sales order will create a debtor invoice transaction. When you receive the money, or the invoice is credited, the allocating the invoice to the credit is what settles the debtor invoice transaction.

As Stuart pointed out, you can add payments to a sales order, and when processed that will create or update an existing cash book receipt batch - and when THAT is activated (usually at the end of the day), it will create the debtor credit transaction and allocate it to the invoice thereby indicating that invoice has been settled.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2488
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 770


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest