pages/credit_note/CreditNoteCartReposne
library
Functions
-
cartFromJson(String str)
→ Cart
-
total_quantity : "1"
extra_claim_product : ""
scheme_discount : "0.00"
scheme_discount_price : "0.00"
price : "67.80"
cn_cart_totals_id : "27"
quantity : "1"
quantity_free : "0"
product_discount_special : "0.00"
product_discount_special_price : "0.00"
product_discount_special_company : "0.00"
product_discount_special_company_price : "0.00"
discount_as_per_fixed : "2.00"
discount_as_per_fixed_price : "1.36"
extra_discount_as_per_fixed : "0.00"
extra_discount_as_per_fixed_price : "0.00"
product_discount : "9.00"
product_discount_price : "5.98"
out_of_stock_1_as_out : "0"
total_discount : "7.34"
total_discount_with_free_scheme : "0.00"
cn_cart_id : "40"
total_taxable_item_vise : "60.46"
total_item_vise : "67.80"
sgst : "6.00"
cgst : "6.00"
igst : "0.00"
sgst_price : "3.6276"
cgst_price : "3.6276"
igst_price : "0.00"
total_gst : "7.26"
-
cartToJson(Cart data)
→ String
-
-
companyFromJson(String str)
→ Company
-
id : "2"
name : "Abbott healthcare"
company_sort : "ABB"
-
companyToJson(Company data)
→ String
-
-
creditNoteCartReposneFromJson(String str)
→ CreditNoteCartReposne
-
data :
{"product":{"product_id":"96679","product_parent_id":"13119","brand":"A to z ns 100","batch_no":"AHJDHDG","packaging_display":"20 Pack","current_quantity":"3","quantity_added":"8","free":"","gst":"12","company":{"id":"2","name":"Abbott healthcare","company_sort":"ABB"},"division":{"id":"","name":""},"expiry_date":"28 Feb, 2025","expiry_date_sort":"02/25","hsn_code":"908878","mrp":"100.00","order_id":"13150","order_number":"PH-GST/007"},"cart":{"total_quantity":"1","extra_claim_product":"","scheme_discount":"0.00","scheme_discount_price":"0.00","price":"67.80","cn_cart_totals_id":"27","quantity":"1","quantity_free":"0","product_discount_special":"0.00","product_discount_special_price":"0.00","product_discount_special_company":"0.00","product_discount_special_company_price":"0.00","discount_as_per_fixed":"2.00","discount_as_per_fixed_price":"1.36","extra_discount_as_per_fixed":"0.00","extra_discount_as_per_fixed_price":"0.00","product_discount":"9.00","product_discount_price":"5.98","out_of_stock_1_as_out":"0","total_discount":"7.34","total_discount_with_free_scheme":"0.00","cn_cart_id":"40","total_taxable_item_vise":"60.46","total_item_vise":"67.80","sgst":"6.00","cgst":"6.00","igst":"0.00","sgst_price":"3.6276","cgst_price":"3.6276","igst_price":"0.00","total_gst":"7.26"}}
summary_add : "1"
remove_column : {"taxable":"0","gst":"0"}
intra_state_1_inter_state_2 : "1"
total_item : "1"
sub_total : "67.80"
discount_array : {"name":"Product Discount (-)","price":"5.98","in_admin":"1"}
scheme_discount_price : "0.00"
cash_discount : "2.00"
cash_discount_price : "1.36"
product_discount_price : "5.98"
product_discount_special_price : "0.00"
product_discount_special_company_price : "0.00"
extra_discount_as_per_fixed : "0.00"
extra_discount_as_per_fixed_price : "0.00"
discount_price : "7.34"
sgst : "3.63"
cgst : "3.63"
igst : "0.00"
tcs_per : "0.00"
tcs : "0.00"
freight : "0.00"
rounding_off : "0.28"
grand_total : "68.00"
total_records : 1
summary : {"gst":"12","taxable":"60.46","sgst":"6.00","sgst_show":"1","cgst":"6.00","igst":"0.00","igst_show":"0","sgst_price":"3.63","cgst_price":"3.63","igst_price":"0.00"}
success : 1
message : "Records found."
-
creditNoteCartReposneToJson(CreditNoteCartReposne data)
→ String
-
-
dataFromJson(String str)
→ CreditNoteData
-
product : {"product_id":"96679","product_parent_id":"13119","brand":"A to z ns 100","batch_no":"AHJDHDG","packaging_display":"20 Pack","current_quantity":"3","quantity_added":"8","free":"","gst":"12","company":{"id":"2","name":"Abbott healthcare","company_sort":"ABB"},"division":{"id":"","name":""},"expiry_date":"28 Feb, 2025","expiry_date_sort":"02/25","hsn_code":"908878","mrp":"100.00","order_id":"13150","order_number":"PH-GST/007"}
cart : {"total_quantity":"1","extra_claim_product":"","scheme_discount":"0.00","scheme_discount_price":"0.00","price":"67.80","cn_cart_totals_id":"27","quantity":"1","quantity_free":"0","product_discount_special":"0.00","product_discount_special_price":"0.00","product_discount_special_company":"0.00","product_discount_special_company_price":"0.00","discount_as_per_fixed":"2.00","discount_as_per_fixed_price":"1.36","extra_discount_as_per_fixed":"0.00","extra_discount_as_per_fixed_price":"0.00","product_discount":"9.00","product_discount_price":"5.98","out_of_stock_1_as_out":"0","total_discount":"7.34","total_discount_with_free_scheme":"0.00","cn_cart_id":"40","total_taxable_item_vise":"60.46","total_item_vise":"67.80","sgst":"6.00","cgst":"6.00","igst":"0.00","sgst_price":"3.6276","cgst_price":"3.6276","igst_price":"0.00","total_gst":"7.26"}
-
dataToJson(CreditNoteData data)
→ String
-
-
discountArrayFromJson(String str)
→ DiscountArray
-
name : "Product Discount (-)"
price : "5.98"
in_admin : "1"
-
discountArrayToJson(DiscountArray data)
→ String
-
-
divisionFromJson(String str)
→ Division
-
id : ""
name : ""
-
divisionToJson(Division data)
→ String
-
-
productFromJson(String str)
→ Product
-
product_id : "96679"
product_parent_id : "13119"
brand : "A to z ns 100"
batch_no : "AHJDHDG"
packaging_display : "20 Pack"
current_quantity : "3"
quantity_added : "8"
free : ""
gst : "12"
company : {"id":"2","name":"Abbott healthcare","company_sort":"ABB"}
division : {"id":"","name":""}
expiry_date : "28 Feb, 2025"
expiry_date_sort : "02/25"
hsn_code : "908878"
mrp : "100.00"
order_id : "13150"
order_number : "PH-GST/007"
-
productToJson(Product data)
→ String
-
-
removeColumnFromJson(String str)
→ RemoveColumn
-
taxable : "0"
gst : "0"
-
removeColumnToJson(RemoveColumn data)
→ String
-
-
summaryFromJson(String str)
→ CreditNoteSummary
-
gst : "12"
taxable : "60.46"
sgst : "6.00"
sgst_show : "1"
cgst : "6.00"
igst : "0.00"
igst_show : "0"
sgst_price : "3.63"
cgst_price : "3.63"
igst_price : "0.00"
-
summaryToJson(CreditNoteSummary data)
→ String
-