ionic-vhframeworks 10.1.6 → 10.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20907,9 +20907,13 @@ export declare class VhEinvoice {
20907
20907
  console.log('error', error)
20908
20908
  })
20909
20909
  * @param taxcode
20910
+ * @param token
20910
20911
  * @param editmode
20911
20912
  * @param data
20912
- * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20913
+ * @returns Promise => {code, message, ok, data}
20914
+ * {code: "00", message: null, ok: true, data: {}} //Gửi CQT thành công
20915
+ * {code: "88", error: "Trùng key tích hợp", message: "Trùng key tích hợp", ok: false} //Hóa đơn này đã được gửi trước đây
20916
+ * {code: "29442", message: "Delete invoice error because the number invoice is sequential", ok: false, error: "Delete invoice error because the number invoice is sequential"}}
20913
20917
  */
20914
20918
  saveInvoice_noSign_byMinvoice(taxcode: string, token: string, editmode: number, data: any): Promise<any>;
20915
20919
  /**
@@ -20926,8 +20930,9 @@ export declare class VhEinvoice {
20926
20930
  * @param editmode
20927
20931
  * @param data
20928
20932
  * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20933
+ * {code: "29442", message: "Delete invoice error because the number invoice is sequential", ok: false, error: "Delete invoice error because the number invoice is sequential"}}
20929
20934
  */
20930
- saveInvoice_Sign_byMinvoice(taxcode: string, token: string, editmode: string, data: any): Promise<any>;
20935
+ saveInvoice_Sign_byMinvoice(taxcode: string, token: string, editmode: number, data: any): Promise<any>;
20931
20936
  /**
20932
20937
  * Hàm ký hóa đơn
20933
20938
  * @example
@@ -20941,6 +20946,7 @@ export declare class VhEinvoice {
20941
20946
  * @param token
20942
20947
  * @param hoadon68_id : "5fc578a6-1ca1-46f9-ab4f-6a0de4b54c32"
20943
20948
  * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20949
+ * {code: "00", message: null, ok: true, data: {}} //Gửi thành công
20944
20950
  */
20945
20951
  signInvoice_byMinvoice(taxcode: string, token: string, hoadon68_id: string): Promise<any>;
20946
20952
  /**
@@ -20972,13 +20978,13 @@ export declare class VhEinvoice {
20972
20978
  * @param taxcode
20973
20979
  * @param token
20974
20980
  * @param inv_InvoiceAuth_id : "26da72ec-a3c4-49d0-90de-2d6a9fb2bdab"
20975
- * @param inv_invoiceIssuedDate
20981
+ * @param inv_invoiceIssuedDate : "2022-09-11"
20976
20982
  * @param data
20977
20983
  * @returns Promise => {"code": "00", "message": "Thành công"}
20978
20984
  */
20979
20985
  updateInvoice_byMinvoice(taxcode: string, token: string, inv_InvoiceAuth_id: string, inv_invoiceIssuedDate: string, data: any): Promise<any>;
20980
20986
  /**
20981
- * Hàm điều chỉnh hóa đơn
20987
+ * Hàm thay thế hóa đơn
20982
20988
  * @example
20983
20989
  * this.vhEinvoice.replaceInvoice_byMinvoice(taxcode, token, data)
20984
20990
  .then((data)=>{
@@ -26318,15 +26324,18 @@ export declare class VhQuerySales {
26318
26324
  */
26319
26325
  changeStateWarranty_Bill_Billdetail(id_bill: any, bill_type: any): any;
26320
26326
  /**
26321
- *
26322
- * @param id_bill
26323
- * @param taxcode
26324
- * @param token
26325
- * @param invoiceSerie
26326
- * @param editmode: 1
26327
- * @returns
26328
- */
26329
- saveInvoice_noSign_byMinvoice1(id_bill: string, taxcode: string, token: string, invoiceSerie: string, editmode: number): Promise<unknown>;
26327
+ * @example
26328
+ * this.vhQuerySales.changeBill_toInvoice_byMinvoice(id_bill,invoiceSeries)
26329
+ .then((rsp)=>{
26330
+ //-----------your code here-----------
26331
+ },(error:any)=>{
26332
+ console.log('error', error)
26333
+ })
26334
+ * @param id_bill
26335
+ * @param invoiceSeries
26336
+ * @returns Promise => {vcode, msg, data(array)}
26337
+ */
26338
+ changeBill_toInvoice_byMinvoice(id_bill: string, invoiceSeries: string): Promise<any>;
26330
26339
  /**
26331
26340
  * hàm này chỉ dùng cho trường hợp bill_type 5->1, 29->3031, 36->1, 42->40, 43->41, 52->50, 53->51
26332
26341
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.1.6",
3
+ "version": "10.1.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"