pavithrapurushan / TpMobilePos

1 stars 0 forks source link

Cannot save bill with Item. Item ID PCA4018. Savebill API Error. #1

Open pavithrapurushan opened 4 years ago

pavithrapurushan commented 4 years ago

API Error Message {"BillSeries":null,"BillNo":0,"Billid":0,"ErrorStatus":1,"Message":"Tax(null)n Bill Doesnt match with Tax(null)n Master:: Message from [PROC_MOBPOS_SaveBill]"}

Input JSON

`<?xml version="1.0" encoding="UTF-8"?>
<SalesBill>
   <Payment>
      <PaymentDetail>
         <CQIssuedBank />
         <CardAuthorisationNo />
         <CardName />
         <CardNo />
         <CardOwner />
         <CardType />
         <ChequeDate />
         <ChequeNo />
         <CreditType>0</CreditType>
         <CurrencyDenom />
         <CurrencyId />
         <CurrencyNumber />
         <CurrencyType>0</CurrencyType>
         <ExchangeRate />
         <ForexType />
         <PaidAmount>351.0</PaidAmount>
         <PayType>0</PayType>
         <PlutusId>0</PlutusId>
         <Tender>360</Tender>
         <WalletId>0</WalletId>
      </PaymentDetail>
      <PaymentSummary>
         <BillAmount>351.00</BillAmount>
         <PaidAmount>351.00</PaidAmount>
         <PendingAmt>0.00</PendingAmt>
      </PaymentSummary>
   </Payment>
   <SalesDetail>
      <BillRow>
         <Amount>69.91</Amount>
         <BatchCode>pb-001</BatchCode>
         <BatchId>1101001489</BatchId>
         <BillingRate>34.9531</BillingRate>
         <CustType>LOCAL</CustType>
         <DiscPer>0</DiscPer>
         <FreeFlag>0</FreeFlag>
         <ItemCode>PCA4018</ItemCode>
         <ItemId>1280</ItemId>
         <ItemName>2 Facial Cleansing Sponges</ItemName>
         <Mrp>105</Mrp>
         <QtyInPacks>2</QtyInPacks>
         <QtyInUnits>0</QtyInUnits>
         <Rate>44.74</Rate>
         <RowTotal>89.48</RowTotal>
         <SlNo>1</SlNo>
         <TaxId>12</TaxId>
         <TaxPer>28</TaxPer>
         <TaxType>INCL</TaxType>
         <TaxableAmt>69.91</TaxableAmt>
         <UPerPack>1</UPerPack>
      </BillRow>
      <BillRow>
         <Amount>285.71</Amount>
         <BatchCode>ABC-123</BatchCode>
         <BatchId>1000300191</BatchId>
         <BillingRate>95.2381</BillingRate>
         <CustType>LOCAL</CustType>
         <DiscPer>0</DiscPer>
         <FreeFlag>0</FreeFlag>
         <ItemCode>CC1714</ItemCode>
         <ItemId>714</ItemId>
         <ItemName>Blush Powder   045 4 g</ItemName>
         <Mrp>100</Mrp>
         <QtyInPacks>3</QtyInPacks>
         <QtyInUnits>0</QtyInUnits>
         <Rate>100</Rate>
         <RowTotal>300</RowTotal>
         <SlNo>2</SlNo>
         <TaxId>13</TaxId>
         <TaxPer>5</TaxPer>
         <TaxType>INCL</TaxType>
         <TaxableAmt>285.71</TaxableAmt>
         <UPerPack>1</UPerPack>
      </BillRow>
      <ErrorStatus>0</ErrorStatus>
   </SalesDetail>
   <SalesSummary>
      <Addtions>0</Addtions>
      <B2BB2CType>B2C</B2BB2CType>
      <BillDate>2015-10-01</BillDate>
      <BillNo>441735</BillNo>
      <BillSeries>14S</BillSeries>
      <CardDiscount>0</CardDiscount>
      <Counter>1</Counter>
      <CustId>0</CustId>
      <CustType>LOCAL</CustType>
      <Customer>ANAND KUMAR</Customer>
      <DiscountAmt>38.95</DiscountAmt>
      <DiscountPer>10</DiscountPer>
      <LoyaltyCardType />
      <LoyaltyCode />
      <LoyaltyId>0</LoyaltyId>
      <NetAmount>351</NetAmount>
      <RoundOff>0.47</RoundOff>
      <SchemeDiscount>0</SchemeDiscount>
      <Shift>1</Shift>
      <StoreId>5</StoreId>
      <SubStore>1</SubStore>
      <TaxAmount>0</TaxAmount>
      <TotalAmount>389.48</TotalAmount>
      <TotalLinewiseTax>0</TotalLinewiseTax>
   </SalesSummary>
</SalesBill>`
jeethjoseph commented 4 years ago
   <SalesDetail>
      <BillRow>
         <Amount>69.91</Amount>
         <BatchCode>pb-001</BatchCode>
         <BatchId>1101001489</BatchId>
         <BillingRate>34.9531</BillingRate>
         <CustType>LOCAL</CustType>
         <DiscPer>0</DiscPer>
         <FreeFlag>0</FreeFlag>
         <ItemCode>PCA4018</ItemCode>
         <ItemId>1280</ItemId>
         <ItemName>2 Facial Cleansing Sponges</ItemName>
         <Mrp>105</Mrp>
         <QtyInPacks>2</QtyInPacks>
         <QtyInUnits>0</QtyInUnits>
         <Rate>44.74</Rate>
         <RowTotal>89.48</RowTotal>
         <SlNo>1</SlNo>
         <TaxId>12</TaxId>
         <TaxPer>28</TaxPer>
         <TaxType>INCL</TaxType>
         <TaxableAmt>69.91</TaxableAmt>
         <UPerPack>1</UPerPack>
      </BillRow>
      <BillRow>
         <Amount>285.71</Amount>
         <BatchCode>ABC-123</BatchCode>
         <BatchId>1000300191</BatchId>
         <BillingRate>95.2381</BillingRate>
         <CustType>LOCAL</CustType>
         <DiscPer>0</DiscPer>
         <FreeFlag>0</FreeFlag>
         <ItemCode>CC1714</ItemCode>
         <ItemId>714</ItemId>
         <ItemName>Blush Powder   045 4 g</ItemName>
         <Mrp>100</Mrp>
         <QtyInPacks>3</QtyInPacks>
         <QtyInUnits>0</QtyInUnits>
         <Rate>100</Rate>
         <RowTotal>300</RowTotal>
         <SlNo>2</SlNo>
         <TaxId>13</TaxId>
         <TaxPer>5</TaxPer>
         <TaxType>INCL</TaxType>
         <TaxableAmt>285.71</TaxableAmt>
         <UPerPack>1</UPerPack>
      </BillRow>
      <ErrorStatus>0</ErrorStatus>
   </SalesDetail>`

Items in question

jeethjoseph commented 4 years ago

@pavithrapurushan which is the item creating the issue?

pavithrapurushan commented 4 years ago

2 Facial Cleansing Sponges from product lookup

jeethjoseph commented 4 years ago

This Item also has another issue with round off.