OFBiz
  1. OFBiz
  2. OFBIZ-1463 JUnit test case for various application components
  3. OFBIZ-1783

Junit test case for Purchase Invoices: editing, adding taxes and shipping charges and posting to GL...

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Activity

      Hide
      Adam Heath added a comment -

      While the patch has been applied, the test case actually fails. It's looking for an invoice with an id of 10000, which doesn't exist.

      Show
      Adam Heath added a comment - While the patch has been applied, the test case actually fails. It's looking for an invoice with an id of 10000, which doesn't exist.
      Hide
      ankurgupta3056@gmail.com added a comment -

      Hi

      We are try to create a sales invoice but in that sales tax is not getting calculated ...its showing sales tax as 0.00 ..we have specify the sales tax also..but dont knwo why its not getting calculated in invoice inspite we have mentioned the tax rate in ACcounting->tax authorities>tax authority->product rates.
      Please let me know the solution for it asap.Please email the soln if u can help me at ankurgupta3056@gmail.com.

      Thanks,
      ankur

      Show
      ankurgupta3056@gmail.com added a comment - Hi We are try to create a sales invoice but in that sales tax is not getting calculated ...its showing sales tax as 0.00 ..we have specify the sales tax also..but dont knwo why its not getting calculated in invoice inspite we have mentioned the tax rate in ACcounting- >tax authorities >tax authority ->product rates. Please let me know the solution for it asap.Please email the soln if u can help me at ankurgupta3056@gmail.com. Thanks, ankur
      Hide
      Vikas Mayur added a comment -

      Thanks Sumit and others,

      Patch is in trunk rev. 658688

      • Vikas
      Show
      Vikas Mayur added a comment - Thanks Sumit and others, Patch is in trunk rev. 658688 Vikas
      Hide
      Sumit Pandit added a comment -

      Here is the patch for the issue, kindly have a look on it.
      thanks.

      Show
      Sumit Pandit added a comment - Here is the patch for the issue, kindly have a look on it. thanks.
      Hide
      Sumit Pandit added a comment - - edited

      Based On write-ups are provided by Jacopo.
      The purpose of the test case is to verify Automatic Accounting transactions on edit invoice and/or adding tax and/or adding shipping charges.

      it follows the following process :-

      1. go to the accounting "View Invoice" screen (there is a link to the invoice also in the order detail screen) (https://localhost:8443/accounting/control/invoiceOverview?invoiceId=demo10001)
      2. in the invoice screens, select the "Items" tab (https://localhost:8443/accounting/control/createInvoiceItem)
      3. use the form at the bottom of the screen (" Add a new invoice Item") to enter taxes and charges; for example:
      1. for taxes, select "invoice Item Type" = "Invoice Sales Tax", and enter the amount in the "unit price"
      2. for shipping charges, select "invoice Item Type" = "Invoice Shipping and Handling", and enter the amount in the "unit price"
      4. when the invoice in OFBiz is ready to be sent to the GL, click on the link "Status to Ready" (at the top of the screen)

      Verify following entry :-

      Cr
      ACCOUNTS _PAYABLE - "ACCOUNTS PAYABLE"
      210000 - "ACCOUNTS PAYABLE"
      can be set by party/role
      Dr
      UNINVOICED _SHIP _RCPT - "UNINVOICED ITEM RECEIPT"
      214000 - "UNINVOICED ITEM RECEIPTS"
      these are the products; this is the same account mapping set for "Inventory Receipts"
      Dr
      "TAXES" (invoice item type: PINV _SALES _TAX)
      516100 - "PURCHASE ORDER ADJUSTMENTS"
      Dr
      "CHARGES" (invoice item type: PINV _SHIP _CHARGES)
      510000 - "FREIGHT IN"

      Show
      Sumit Pandit added a comment - - edited Based On write-ups are provided by Jacopo. The purpose of the test case is to verify Automatic Accounting transactions on edit invoice and/or adding tax and/or adding shipping charges. it follows the following process :- 1. go to the accounting "View Invoice" screen (there is a link to the invoice also in the order detail screen) ( https://localhost:8443/accounting/control/invoiceOverview?invoiceId=demo10001 ) 2. in the invoice screens, select the "Items" tab ( https://localhost:8443/accounting/control/createInvoiceItem ) 3. use the form at the bottom of the screen (" Add a new invoice Item") to enter taxes and charges; for example: 1. for taxes, select "invoice Item Type" = "Invoice Sales Tax", and enter the amount in the "unit price" 2. for shipping charges, select "invoice Item Type" = "Invoice Shipping and Handling", and enter the amount in the "unit price" 4. when the invoice in OFBiz is ready to be sent to the GL, click on the link "Status to Ready" (at the top of the screen) Verify following entry :- Cr ACCOUNTS _PAYABLE - "ACCOUNTS PAYABLE" 210000 - "ACCOUNTS PAYABLE" can be set by party/role Dr UNINVOICED _SHIP _RCPT - "UNINVOICED ITEM RECEIPT" 214000 - "UNINVOICED ITEM RECEIPTS" these are the products; this is the same account mapping set for "Inventory Receipts" Dr "TAXES" (invoice item type: PINV _SALES _TAX) 516100 - "PURCHASE ORDER ADJUSTMENTS" Dr "CHARGES" (invoice item type: PINV _SHIP _CHARGES) 510000 - "FREIGHT IN"

        People

        • Assignee:
          Vikas Mayur
          Reporter:
          Sumit Pandit
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development