ionic-vhframeworks 10.1.5 → 10.1.7

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 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
  /**
@@ -20927,7 +20931,7 @@ export declare class VhEinvoice {
20927
20931
  * @param data
20928
20932
  * @returns Promise => {"code": "00", "message": null, "ok": true, "data": {}}
20929
20933
  */
20930
- saveInvoice_Sign_byMinvoice(taxcode: string, token: string, editmode: string, data: any): Promise<any>;
20934
+ saveInvoice_Sign_byMinvoice(taxcode: string, token: string, editmode: number, data: any): Promise<any>;
20931
20935
  /**
20932
20936
  * Hàm ký hóa đơn
20933
20937
  * @example
@@ -20972,13 +20976,13 @@ export declare class VhEinvoice {
20972
20976
  * @param taxcode
20973
20977
  * @param token
20974
20978
  * @param inv_InvoiceAuth_id : "26da72ec-a3c4-49d0-90de-2d6a9fb2bdab"
20975
- * @param inv_invoiceIssuedDate
20979
+ * @param inv_invoiceIssuedDate : "2022-09-11"
20976
20980
  * @param data
20977
20981
  * @returns Promise => {"code": "00", "message": "Thành công"}
20978
20982
  */
20979
20983
  updateInvoice_byMinvoice(taxcode: string, token: string, inv_InvoiceAuth_id: string, inv_invoiceIssuedDate: string, data: any): Promise<any>;
20980
20984
  /**
20981
- * Hàm điều chỉnh hóa đơn
20985
+ * Hàm thay thế hóa đơn
20982
20986
  * @example
20983
20987
  * this.vhEinvoice.replaceInvoice_byMinvoice(taxcode, token, data)
20984
20988
  .then((data)=>{
@@ -26317,7 +26321,19 @@ export declare class VhQuerySales {
26317
26321
  * @return Promise => bool = true or false
26318
26322
  */
26319
26323
  changeStateWarranty_Bill_Billdetail(id_bill: any, bill_type: any): any;
26320
- saveInvoice_noSign_byMinvoice1(id_bill: string, taxcode: string, token: string, invoiceSerie: string, editmode: number): Promise<unknown>;
26324
+ /**
26325
+ * @example
26326
+ * this.vhQuerySales.changeBill_toInvoice_byMinvoice(id_bill,invoiceSeries)
26327
+ .then((rsp)=>{
26328
+ //-----------your code here-----------
26329
+ },(error:any)=>{
26330
+ console.log('error', error)
26331
+ })
26332
+ * @param id_bill
26333
+ * @param invoiceSeries
26334
+ * @returns Promise => {vcode, msg, data(array)}
26335
+ */
26336
+ changeBill_toInvoice_byMinvoice(id_bill: string, invoiceSeries: string): Promise<any>;
26321
26337
  /**
26322
26338
  * 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
26323
26339
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.1.5",
3
+ "version": "10.1.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"