Iniit
This commit is contained in:
@@ -0,0 +1,150 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class CartItem extends Unibase.Platform.Core.BaseComponent {
|
||||
init() {
|
||||
var instance = this;
|
||||
instance.fileCacheHelper.loadJsFile("apps/transact/controls/invoices/pos.component.js", function () {
|
||||
instance._pos = Bizgaze.Apps.Transact.Controls.Pos.Instance();
|
||||
});
|
||||
}
|
||||
updateCartContainerHtml(itemId, productId) {
|
||||
var cartInfo = document.getElementsByClassName("cart-item-info");
|
||||
if (cartInfo.length > 0) {
|
||||
let cartContainerItemElement = document.querySelector(".cart-container [data-itemId='" + itemId + "'][data-productId='" + productId + "']");
|
||||
let currentCart = Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart.find(x => x.productId == productId && x.itemId == itemId);
|
||||
if (cartContainerItemElement) {
|
||||
$(cartContainerItemElement).find(".item-quantity").val(currentCart.quantity.toString());
|
||||
$(cartContainerItemElement).find(".item-quantity").text(currentCart.quantity.toString());
|
||||
$(cartContainerItemElement).find(".total-price").text(((currentCart.quantity * currentCart.itemPrice).toFixed(2)).toString());
|
||||
$(cartContainerItemElement).find(".total-accessible-price").text(((currentCart.quantity * currentCart.accessibleAmount).toFixed(2)).toString());
|
||||
$(cartContainerItemElement).find('.item-weight .item-quantity').text(currentCart.quantity);
|
||||
if (currentCart.discountRate > 0) {
|
||||
$(cartContainerItemElement).find('.item-discount').removeClass("d-none");
|
||||
}
|
||||
}
|
||||
else {
|
||||
var html = "";
|
||||
var itemdetails = this._pos.userCart.find(x => x.itemId == itemId && x.productId == productId);
|
||||
if (itemdetails != undefined) {
|
||||
if (itemdetails["offerrefid"] != 0) {
|
||||
html = this.getCartItemsHtml(itemdetails, itemdetails.isFOC);
|
||||
}
|
||||
else {
|
||||
html = this.getCartItemsHtml(itemdetails);
|
||||
}
|
||||
$('#cart-container-items').last().append(html);
|
||||
}
|
||||
}
|
||||
if ($(cartContainerItemElement).find('.item-discount').text() != "") {
|
||||
$(cartContainerItemElement).find('.item-discount').removeClass("d-none");
|
||||
}
|
||||
}
|
||||
else {
|
||||
$(".cart-container").remove();
|
||||
$('#poscart_details').find('.Section').first().find(".card-body").first().append(this.getCartHtml());
|
||||
Bizgaze.Apps.Transact.Controls.Pos.Instance().cartInfoElement = null;
|
||||
Bizgaze.Apps.Transact.Controls.Pos.Instance().allEventsExecuted = false;
|
||||
Bizgaze.Apps.Transact.Controls.Pos.Instance().eventListeners();
|
||||
}
|
||||
Bizgaze.Apps.Transact.Controls.Pos.Instance().updateCheckoutPrice();
|
||||
var total = $("#grand_total_checkout").text();
|
||||
if ($('.section_PaymentInformation').is(':visible')) {
|
||||
$('#billDetailsWrap').removeClass('d-none');
|
||||
Bizgaze.Apps.Transact.Controls.Pos.Instance().applyCartBodyHeight();
|
||||
}
|
||||
$(".total-pay-price").text(total);
|
||||
this._pos.runVirtualKeyboard();
|
||||
this._pos.applyCartBodyHeight();
|
||||
}
|
||||
getCartHtml() {
|
||||
let html = "";
|
||||
var ins = Bizgaze.Apps.Transact.Controls.Pos.Instance();
|
||||
var totalQuantity = Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart.length;
|
||||
for (var i = 0; i < Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart.length; i++) {
|
||||
if (Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart[i]["offerrefid"] != 0) {
|
||||
html += this.getCartItemsHtml(Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart[i], Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart[i].isFOC);
|
||||
}
|
||||
else {
|
||||
html += this.getCartItemsHtml(Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart[i]);
|
||||
}
|
||||
}
|
||||
var total = Bizgaze.Apps.Transact.Controls.Pos.Instance().totalPrice(Bizgaze.Apps.Transact.Controls.Pos.Instance().userCart).toFixed(2);
|
||||
var display = "";
|
||||
if (Bizgaze.Apps.Transact.Controls.Pos.Instance().invoiceid == 0) {
|
||||
display = "d-none";
|
||||
}
|
||||
let taxamount = parseFloat(Bizgaze.Apps.Transact.Controls.Pos.Instance().totalTaxAmount).toFixed(2);
|
||||
return `<div class='cart-container'><div class='card-header cart-header px-10'><span id="cart-quantity" class="cart-quantity"><span class="cart-heading"><i class="las la-shopping-cart font-25 mr-5"></i> Order Details</span><span class="item-quantity">${totalQuantity}</span></span></div><div data-simplebar class='simple-scroll-bar card-body p-0 cart-body'><div id="cart-container-items">${html}</div></div><div class="cart-footer"><div id="billDetailsWrap" class="bill-details-wrap d-none"><div class="bill-details"><div class="coupon-wrapper"><a class="apply-coupon-link" href="javascript:;" id="applyCoupanLink" onclick="Bizgaze.Apps.Transact.Controls.CartItem.Instance().applyCoupan();">Apply Coupon</a><div class="coupon-input-wrap d-none"><input type="text" class="form-control coupon-input virtual-keyboard" data-kioskboard-type="all" data-kioskboard-specialcharacters="false" placeholder="Apply coupon"><a class="coupon-code-apply" href="javascript:;">Apply</a></div></div><span class="font-weight-500 text-dark-100 mb-1">Bill Details</span><ul class="bill-details-list"><li><span >Item Total</span><span class="detail-price" id="total_adjustmentprice">${parseFloat(ins.totalAdjustmentAmmount).toFixed(2)}</span></li><li><span>Discounts</span><span class="detail-price" id="total_discountprice">${ins.totalDiscountAmount}</span></li><li><span>Taxes</span><span class="detail-price" id="total_taxprice">${taxamount}</span></li></ul></div><div class="total-pay-price-wrap"><span>Total</span><span class="total-pay-price" id="total_price">${parseFloat(total).toFixed(2)}</span></div></div><div class="cart-checkout-btn ${display}"><a href="javascript:;">Checkout</a><span id="grand_total_checkout" class="total-price-box total-price">${parseFloat(total).toFixed(2)}</span></div></div></div>`;
|
||||
}
|
||||
getCartItemsHtml(cartItem, isOffer) {
|
||||
cartItem.itemPrice = parseFloat(cartItem.itemPrice).toFixed(2);
|
||||
let isHidden = '', isFree = '', productId = cartItem.productId, discount = '', hasdiscount = 'd-none';
|
||||
var discountvalue = 0;
|
||||
var accessibleAmount = (cartItem.quantity * cartItem.itemPrice).toFixed(2);
|
||||
if (cartItem.discountRate > 0) {
|
||||
discount = ' - (' + cartItem.discountRate + ') %';
|
||||
hasdiscount = '';
|
||||
}
|
||||
if (isOffer) {
|
||||
isHidden = 'd-none';
|
||||
isFree = '(free)';
|
||||
productId = 0;
|
||||
accessibleAmount = (cartItem.accessibleAmount * cartItem.quantity).toFixed(2);
|
||||
}
|
||||
var image = "";
|
||||
var imagepath = Bizgaze.Apps.Transact.Controls.Pos.Instance().itemImage.find(x => x.itemId == cartItem.itemId);
|
||||
if (imagepath != null && imagepath != undefined) {
|
||||
image = imagepath.image;
|
||||
}
|
||||
return `<div class="cart-item-info" data-itemId="${cartItem.itemId}" data-productId="${productId}">
|
||||
<input class="item-tax-amount hidden" style="" value ="${cartItem.TaxAmount}">
|
||||
<input class="discount_amount d-none hidden" value="${cartItem.DiscountAmount}">
|
||||
<div class="item-left-details"><img src="${image}" class="cart-item-img">
|
||||
<div class="cart-item-details">
|
||||
<span class="item-name">${cartItem.itemName} ${isFree}</span>
|
||||
<span class="item-weight"><span class="item-quantity">${cartItem.quantity}</span><span class="mx-1"><i class="las la-times"></i></span><span class="item-price">${cartItem.itemPrice}<span class="item-discount ${hasdiscount}">${discount}</span> </span></span>
|
||||
</div></div>
|
||||
<div class="item-right-details"><span class="total-accessible-price">${(accessibleAmount)}</span>
|
||||
<div class="cart-counter ${isHidden}">
|
||||
<a class="btn item-increment-btn control-btn" href="javascript:;"><i class="las la-plus"></i></a>
|
||||
<input type="number" value="${cartItem.quantity}" min="0" max="100" class="prodQuantity item-quantity virtual-keyboard" data-kioskboard-type="numpad">
|
||||
<a class="item-decrement-btn control-btn" href="javascript:;"><i class="las la-minus"></i></a>
|
||||
</div></div>
|
||||
<a class="btn item-remove-btn ${isHidden}" href="javascript:;"><i class="las la-times font-18"></i></a>
|
||||
</div>`;
|
||||
}
|
||||
loadControl(containerid, prop) {
|
||||
const self = this;
|
||||
var data = self.getCartHtml();
|
||||
$("#" + containerid).append(data);
|
||||
$('#poscart_details').find('.Section').first().addClass('mb-0 border-0').find('.card-header').first().addClass('d-none').siblings('.card-body').addClass('pa-0');
|
||||
}
|
||||
applyCoupan() {
|
||||
$('.coupon-input-wrap').toggleClass('d-none');
|
||||
$('.apply-coupon-link').toggleClass('active');
|
||||
this._pos.applyCartBodyHeight();
|
||||
}
|
||||
loadControlSettings(controlsettingjson, formpropertyid) {
|
||||
}
|
||||
loadPropertySettings(propertysettings, formpropertyid) {
|
||||
}
|
||||
bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new CartItem();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.CartItem = CartItem;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
File diff suppressed because one or more lines are too long
+16
@@ -0,0 +1,16 @@
|
||||
var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{init(){var t=this;t.fileCacheHelper.loadJsFile("apps/transact/controls/invoices/pos.component.js",function(){t._pos=n.Apps.Transact.Controls.Pos.Instance()})}updateCartContainerHtml(t,i){var e=document.getElementsByClassName("cart-item-info"),u,r,f;if(e.length>0){let f=document.querySelector(".cart-container [data-itemId='"+t+"'][data-productId='"+i+"']"),e=n.Apps.Transact.Controls.Pos.Instance().userCart.find(n=>n.productId==i&&n.itemId==t);f?($(f).find(".item-quantity").val(e.quantity.toString()),$(f).find(".item-quantity").text(e.quantity.toString()),$(f).find(".total-price").text((e.quantity*e.itemPrice).toFixed(2).toString()),$(f).find(".total-accessible-price").text((e.quantity*e.accessibleAmount).toFixed(2).toString()),$(f).find(".item-weight .item-quantity").text(e.quantity),e.discountRate>0&&$(f).find(".item-discount").removeClass("d-none")):(u="",r=this._pos.userCart.find(n=>n.itemId==t&&n.productId==i),r!=undefined&&(u=r.offerrefid!=0?this.getCartItemsHtml(r,r.isFOC):this.getCartItemsHtml(r),$("#cart-container-items").last().append(u)));$(f).find(".item-discount").text()!=""&&$(f).find(".item-discount").removeClass("d-none")}else $(".cart-container").remove(),$("#poscart_details").find(".Section").first().find(".card-body").first().append(this.getCartHtml()),n.Apps.Transact.Controls.Pos.Instance().cartInfoElement=null,n.Apps.Transact.Controls.Pos.Instance().allEventsExecuted=!1,n.Apps.Transact.Controls.Pos.Instance().eventListeners();n.Apps.Transact.Controls.Pos.Instance().updateCheckoutPrice();f=$("#grand_total_checkout").text();$(".section_PaymentInformation").is(":visible")&&($("#billDetailsWrap").removeClass("d-none"),n.Apps.Transact.Controls.Pos.Instance().applyCartBodyHeight());$(".total-pay-price").text(f);this._pos.runVirtualKeyboard();this._pos.applyCartBodyHeight()}getCartHtml(){var i,e,t,r,u;let f="";for(i=n.Apps.Transact.Controls.Pos.Instance(),e=n.Apps.Transact.Controls.Pos.Instance().userCart.length,t=0;t<n.Apps.Transact.Controls.Pos.Instance().userCart.length;t++)f+=n.Apps.Transact.Controls.Pos.Instance().userCart[t].offerrefid!=0?this.getCartItemsHtml(n.Apps.Transact.Controls.Pos.Instance().userCart[t],n.Apps.Transact.Controls.Pos.Instance().userCart[t].isFOC):this.getCartItemsHtml(n.Apps.Transact.Controls.Pos.Instance().userCart[t]);r=n.Apps.Transact.Controls.Pos.Instance().totalPrice(n.Apps.Transact.Controls.Pos.Instance().userCart).toFixed(2);u="";n.Apps.Transact.Controls.Pos.Instance().invoiceid==0&&(u="d-none");let o=parseFloat(n.Apps.Transact.Controls.Pos.Instance().totalTaxAmount).toFixed(2);return`<div class='cart-container'><div class='card-header cart-header px-10'><span id="cart-quantity" class="cart-quantity"><span class="cart-heading"><i class="las la-shopping-cart font-25 mr-5"></i> Order Details</span><span class="item-quantity">${e}</span></span></div><div data-simplebar class='simple-scroll-bar card-body p-0 cart-body'><div id="cart-container-items">${f}</div></div><div class="cart-footer"><div id="billDetailsWrap" class="bill-details-wrap d-none"><div class="bill-details"><div class="coupon-wrapper"><a class="apply-coupon-link" href="javascript:;" id="applyCoupanLink" onclick="Bizgaze.Apps.Transact.Controls.CartItem.Instance().applyCoupan();">Apply Coupon</a><div class="coupon-input-wrap d-none"><input type="text" class="form-control coupon-input virtual-keyboard" data-kioskboard-type="all" data-kioskboard-specialcharacters="false" placeholder="Apply coupon"><a class="coupon-code-apply" href="javascript:;">Apply</a></div></div><span class="font-weight-500 text-dark-100 mb-1">Bill Details</span><ul class="bill-details-list"><li><span >Item Total</span><span class="detail-price" id="total_adjustmentprice">${parseFloat(i.totalAdjustmentAmmount).toFixed(2)}</span></li><li><span>Discounts</span><span class="detail-price" id="total_discountprice">${i.totalDiscountAmount}</span></li><li><span>Taxes</span><span class="detail-price" id="total_taxprice">${o}</span></li></ul></div><div class="total-pay-price-wrap"><span>Total</span><span class="total-pay-price" id="total_price">${parseFloat(r).toFixed(2)}</span></div></div><div class="cart-checkout-btn ${u}"><a href="javascript:;">Checkout</a><span id="grand_total_checkout" class="total-price-box total-price">${parseFloat(r).toFixed(2)}</span></div></div></div>`}getCartItemsHtml(t,i){var l,f,e,r;t.itemPrice=parseFloat(t.itemPrice).toFixed(2);let u="",o="",s=t.productId,h="",c="d-none";return l=0,f=(t.quantity*t.itemPrice).toFixed(2),t.discountRate>0&&(h=" - ("+t.discountRate+") %",c=""),i&&(u="d-none",o="(free)",s=0,f=(t.accessibleAmount*t.quantity).toFixed(2)),e="",r=n.Apps.Transact.Controls.Pos.Instance().itemImage.find(n=>n.itemId==t.itemId),r!=null&&r!=undefined&&(e=r.image),`<div class="cart-item-info" data-itemId="${t.itemId}" data-productId="${s}">
|
||||
<input class="item-tax-amount hidden" style="" value ="${t.TaxAmount}">
|
||||
<input class="discount_amount d-none hidden" value="${t.DiscountAmount}">
|
||||
<div class="item-left-details"><img src="${e}" class="cart-item-img">
|
||||
<div class="cart-item-details">
|
||||
<span class="item-name">${t.itemName} ${o}</span>
|
||||
<span class="item-weight"><span class="item-quantity">${t.quantity}</span><span class="mx-1"><i class="las la-times"></i></span><span class="item-price">${t.itemPrice}<span class="item-discount ${c}">${h}</span> </span></span>
|
||||
</div></div>
|
||||
<div class="item-right-details"><span class="total-accessible-price">${f}</span>
|
||||
<div class="cart-counter ${u}">
|
||||
<a class="btn item-increment-btn control-btn" href="javascript:;"><i class="las la-plus"></i></a>
|
||||
<input type="number" value="${t.quantity}" min="0" max="100" class="prodQuantity item-quantity virtual-keyboard" data-kioskboard-type="numpad">
|
||||
<a class="item-decrement-btn control-btn" href="javascript:;"><i class="las la-minus"></i></a>
|
||||
</div></div>
|
||||
<a class="btn item-remove-btn ${u}" href="javascript:;"><i class="las la-times font-18"></i></a>
|
||||
</div>`}loadControl(n){const t=this;var i=t.getCartHtml();$("#"+n).append(i);$("#poscart_details").find(".Section").first().addClass("mb-0 border-0").find(".card-header").first().addClass("d-none").siblings(".card-body").addClass("pa-0")}applyCoupan(){$(".coupon-input-wrap").toggleClass("d-none");$(".apply-coupon-link").toggleClass("active");this._pos.applyCartBodyHeight()}loadControlSettings(){}loadPropertySettings(){}bindEditFormDetails(){}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.CartItem=i})(i=t.Controls||(t.Controls={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,41 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Cartitem_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Cartitem_Setting();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Cartitem_Setting = Cartitem_Setting;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cartitem.settings.js","sourceRoot":"","sources":["cartitem.settings.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CAqChB;AArCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAmCpB;IAnCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAiCxB;QAjCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA+BxB;YA/BD,WAAiB,QAAQ;gBACrB,MAAa,gBAAgB;oBACzB,eAAe;wBACX,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,yBAAyB,CAAC,SAAS;wBAC/B,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBAEjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAC;yBAC1C;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBA7BY,yBAAgB,mBA6B5B,CAAA;YACL,CAAC,EA/BgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA+BxB;QACL,CAAC,EAjCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAiCxB;IACL,CAAC,EAnCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAmCpB;AACL,CAAC,EArCS,OAAO,KAAP,OAAO,QAqChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.Cartitem_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,480 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Eb extends Unibase.Platform.Core.BaseComponent {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.ebcontainer = "";
|
||||
this.deleted_EBs = new Array();
|
||||
this.itemIds = new Array();
|
||||
}
|
||||
init(formpropertyid, prop, callback) {
|
||||
let instance = this;
|
||||
let jsFiles = ["apps/transact/controls/invoices/invoiceitem.component.js", "apps/crm/contacts/managers/contactmanager.js", "apps/transact/managers/invoicemanager.js", "platform/core/helpers/numberhelper/numberhelper.js", "libs/jquery/pagination/jquery.pagination.js"];
|
||||
instance.fileCacheHelper.loadJsFiles(jsFiles, function () {
|
||||
instance._invoiceItems = Bizgaze.Apps.Transact.Controls.InvoiceItem.Instance();
|
||||
instance.deleted_EBs = [];
|
||||
instance.itemIds = [];
|
||||
instance.loadControlSettings(prop.ControlJsonText, prop.FormPropertyId);
|
||||
instance.loadPropertySettings(prop.PropertySettings, prop.FormPropertyId);
|
||||
});
|
||||
}
|
||||
loadControl(containerid, prop) {
|
||||
var instance = this;
|
||||
let html = `<div class="form-group EBContainer m-t" id="divEBs">
|
||||
<div class="m-l m-r">
|
||||
<div class="EB_header row bg-white border-2 border-bottom border-grey mx-0 py-10">
|
||||
<div class="col-sm-7 text-left font-weight-600">EB Name</div>
|
||||
<div class="col-sm-3 text-center font-weight-600">Fill Type</div>
|
||||
<div class="col-sm-2 text-right font-weight-600">Volume</div></div></div></div>
|
||||
<div class="EB-row hidden"></div>
|
||||
|
||||
<div class="col-xs-6 m-l m-r">
|
||||
<input type = "hidden" id = "hdn_customcontrol" class="value-control" value = "Bizgaze.Apps.Transact.Controls.Eb.Instance().getEbItems();">
|
||||
<a id="addEBrow" href="javascript: Bizgaze.Apps.Transact.Controls.Eb.Instance().addEBDatarow();" class="btn btn-outline-primary" title="Add EB">Add EB</a>
|
||||
</div></div></div>`;
|
||||
$("#" + containerid).html(html);
|
||||
instance.ebcontainer = containerid;
|
||||
}
|
||||
loadControlSettings(controlsettingjson, formpropertyid) {
|
||||
var instance = this;
|
||||
instance.loadEBs();
|
||||
}
|
||||
loadPropertySettings(propertysettings, formpropertyid) {
|
||||
return null;
|
||||
}
|
||||
bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
|
||||
return null;
|
||||
}
|
||||
getEbItems() {
|
||||
var instance = this;
|
||||
var EBs = instance.getEBs();
|
||||
return EBs;
|
||||
}
|
||||
addEBDatarow() {
|
||||
var instance = this;
|
||||
$('.divDescriptionDetails').addClass('hidden');
|
||||
instance.addEBRow(0, 0, 0, "", 0.0, 0, 1, "", null);
|
||||
}
|
||||
addEBRow(orderId, EBId, EBContactId, EBName, volume, InvoiceId, FillType, Notes, EBItemList) {
|
||||
var instance = this;
|
||||
var padding = "";
|
||||
if (EBId) {
|
||||
padding = "m-t";
|
||||
}
|
||||
var html = '<div class="form-group EB-row addedEB-row">' +
|
||||
'<div class="row mx-0 EBdata"><div class="EB-Name col-sm-7 d-flex align-items-center ' + padding + '">' +
|
||||
'<a class="input-group-addon no-border EBdelete" href="javascript:;" title="Remove row"><i class="fa fa-trash-o fa-lg mr-2 text-danger delete" aria-hidden="true"></i></a>' +
|
||||
'<div><input type="hidden" class="hfOrderEBId" value="0" />' +
|
||||
'<div class="input-group">';
|
||||
if (EBId != 0) {
|
||||
html += '<a class="default EBName-link" href="javascript:;">' + EBName + '</a>';
|
||||
}
|
||||
else {
|
||||
html += `<select class="txt_EBName ui-autocomplete form-control col-sm-6" data-placeholder="Select"
|
||||
placeholder="EB Name" value="' + EBName + '">`;
|
||||
}
|
||||
html +=
|
||||
'<input type="hidden" class="hf_EBId" value="' + EBContactId + '" />' +
|
||||
'</div>' +
|
||||
'</div></div>' +
|
||||
'<div class="col-sm-3 m-t text-center">' +
|
||||
'<select id="cmbFillType" class="form-control"><option value="1">Initial Fill</option><option value="2">Service Fill</option></select></div>' +
|
||||
'<div class="col-sm-2">' +
|
||||
'<div class="EB_Volume floating-label-form-group text-right"><b class="text-dark">' + volume + '</b></div></div></div>' +
|
||||
'<div class="divDescriptionDetails bg-secondary-light-5 pa-10 mt-10 hidden">' +
|
||||
'<div class="clear m-b-sm"> <div class="EB-Itemrow hidden"></div>';
|
||||
html += '<div class="col-xs-6 m-l m-r m-t"><a id="addEBItemrow" class="btn btn-outline-primary" title="Add EB Item">Add EB Item</a></div>';
|
||||
html += '<div class="col-sm-12 mt-10">' +
|
||||
'<div class="floating-label-form-group item-desc min-padding floating-label-form-group-with-value">' +
|
||||
'<input type="text" class="EBDesc form-control" value="' + Notes + '" placeholder="Notes" />' +
|
||||
'</div>' +
|
||||
'</div></div></div>' +
|
||||
'</div>';
|
||||
$(".EB-row:last").after(html);
|
||||
var element = $(".EB-row:last");
|
||||
element.find('.EB_Volume').on('click', function () {
|
||||
$(".divDescriptionDetails").addClass("hidden");
|
||||
$(this).parents('.addedEB-row').find(".divDescriptionDetails").removeClass('hidden');
|
||||
});
|
||||
if (EBItemList != null || EBItemList != undefined) {
|
||||
for (var i = 0; i < EBItemList.length; i++) {
|
||||
instance.addEBItemrow(EBItemList[i], element);
|
||||
}
|
||||
}
|
||||
else {
|
||||
instance.addEBItemrow(null, element);
|
||||
}
|
||||
element.find(".EBDesc").val(Notes);
|
||||
element.find("#cmbFillType").val(FillType);
|
||||
var TotalVolume = 0;
|
||||
element.find(".EB-Itemrow").each(function () {
|
||||
if ($(this).find(".EBItem_Volume").val() != 0 && $(this).find(".EBItem_Volume").val() != undefined) {
|
||||
TotalVolume += Number($(this).find(".EBItem_Volume").val());
|
||||
}
|
||||
});
|
||||
element.find(".EB_Volume").text(TotalVolume);
|
||||
element.find(".txt_EBName,.EBName-link").focusin(function () {
|
||||
if (element.find(".hf_EBId").val() != -1) {
|
||||
$(".divDescriptionDetails").addClass("hidden");
|
||||
element.find(".divDescriptionDetails").toggleClass("hidden");
|
||||
}
|
||||
});
|
||||
var txtEBName = element.find(".txt_EBName");
|
||||
var hfSelectedEBId = element.find(".hf_EBId");
|
||||
if (hfSelectedEBId.val() == -1) {
|
||||
$("#addEBrow").addClass('hidden');
|
||||
}
|
||||
var url = _appsettings.server_url() + '/apis/v4/bizgaze/crm/contacts/getcontactebs';
|
||||
AutoCompleteHelper.getHelper().Create(txtEBName, hfSelectedEBId, url, function (response) {
|
||||
if (hfSelectedEBId.val() != 0) {
|
||||
element.find(".EB_volume").removeClass('hidden');
|
||||
$(".divDescriptionDetails").addClass('hidden');
|
||||
element.find(".divDescriptionDetails").removeClass('hidden');
|
||||
}
|
||||
if (hfSelectedEBId.val() == -1) {
|
||||
$(".divDescriptionDetails").addClass('hidden');
|
||||
$("#addEBrow").addClass('hidden');
|
||||
}
|
||||
else {
|
||||
var hfSelectedEBItemId = element.find(".hf_EBItemId");
|
||||
instance.loadItemAutoComplete(element, "0", hfSelectedEBItemId);
|
||||
}
|
||||
$('.txt_EBName + .select2-container').width(421.987);
|
||||
});
|
||||
element.find(".EBdelete").on('click', function () {
|
||||
bootbox.confirm("You are about to delete the EB. Are you sure?", function (result) {
|
||||
if (result) {
|
||||
element.find(".EB-Itemrow").each(function () {
|
||||
var Ebid = $(this).find(".hf_InvEBId").val();
|
||||
element.remove();
|
||||
if (Ebid != "0" && Ebid != undefined) {
|
||||
instance.deleted_EBs.push(Number(Ebid));
|
||||
}
|
||||
});
|
||||
if (hfSelectedEBId.val() == -1) {
|
||||
$("#addEBrow").removeClass('hidden');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
element.find("#addEBItemrow").on('click', function () {
|
||||
instance.addEBItemrow(null, element);
|
||||
});
|
||||
}
|
||||
addEBItemrow(EBItemList, EBelement) {
|
||||
var instance = this;
|
||||
var ItemName = "";
|
||||
var ItemId = 0;
|
||||
var Volume = 0;
|
||||
var EBId = 0;
|
||||
var SKU = "";
|
||||
if (EBItemList != null || EBItemList != undefined) {
|
||||
EBId = EBItemList.EBId;
|
||||
ItemName = EBItemList.ItemName;
|
||||
ItemId = EBItemList.ItemId;
|
||||
Volume = EBItemList.Volume;
|
||||
SKU = EBItemList.SKU;
|
||||
}
|
||||
var floting = "";
|
||||
if (ItemId == 0) { }
|
||||
floting = "floating-label-form-group";
|
||||
var html = '<div class="EB-Itemrow row mx-0 mb-15">' +
|
||||
'<div class="EB_Item-Name col-sm-7 d-flex align-items-center"><input type="hidden" class="hf_InvEBId" value="' + EBId + '" />' +
|
||||
'<a class="input-group-addon no-border EBItemdelete" href = "javascript:;" title = "Remove row"><i class="fa fa-trash-o fa-lg mr-2 text-danger"> </i></a> <input type = "hidden" class="hf_EBItemId" value = "' + ItemId + '" /> ';
|
||||
if (ItemId != 0) {
|
||||
html += '<a class="default EBItemName-link" href="javascript:;">' + SKU + "-" + ItemName + '</a>';
|
||||
}
|
||||
else {
|
||||
html += '<select class="txt_EBItemName ui-autocomplete form-control" data-placeholder="Select" placeholder="EB Item Name" value="' + ItemName + '"></select>';
|
||||
}
|
||||
html += '</div><div class="col-sm-3"></div>' +
|
||||
'<div class="col-sm-2 pr-0">' +
|
||||
'<input type="text" class="EBItem_Volume form-control text-right" placeholder="volume" onkeypress="return isNumberKey(event)" value="' + Volume + '" /></div></div>';
|
||||
EBelement.find(".EB-Itemrow:last").after(html);
|
||||
var element = EBelement.find(".EB-Itemrow:last");
|
||||
var lobid = $(".hfAutoCompleteId_lobid").val();
|
||||
var Dcid = Controls.InvoiceItem.Instance().dcid;
|
||||
if (lobid == 0)
|
||||
lobid = $("#cmbInv_Lob").val();
|
||||
var txtEBItemName = element.find(".txt_EBItemName");
|
||||
var hfSelectedEBItemId = element.find(".hf_EBItemId");
|
||||
var selectitemids = "";
|
||||
EBelement.find(".EB-Itemrow").each(function () {
|
||||
if ($(this).find(".hf_EBItemId").val() != 0 && $(this).find(".hf_EBItemId").val() != undefined) {
|
||||
selectitemids += $(this).find(".hf_EBItemId").val() + ",";
|
||||
}
|
||||
});
|
||||
var url = "";
|
||||
var invoiceid = $(".hdn_invoiceid").val();
|
||||
if (selectitemids == '')
|
||||
selectitemids = '0';
|
||||
if ($(".hdn_invoiceid").val() != 0 && $(".hdn_invoiceid").val() != undefined) {
|
||||
url = _appsettings.server_url() + '/apis/v4/bizgaze/transact/invoices/autopendingebitemsforinvoicebyinvoiceid/invoiceid/' + $(".hdn_invoiceid").val() + '/itemids/' + selectitemids;
|
||||
AutoCompleteHelper.getHelper().Create(txtEBItemName, hfSelectedEBItemId, url, function (response) {
|
||||
var data = response;
|
||||
});
|
||||
}
|
||||
else {
|
||||
instance.loadItemAutoComplete(element, selectitemids, hfSelectedEBItemId);
|
||||
}
|
||||
element.find(".EBItemdelete").on('click', function () {
|
||||
bootbox.confirm("You are about to delete the EB. Are you sure?", function (result) {
|
||||
if (result) {
|
||||
var Ebid = element.find(".hf_InvEBId").val();
|
||||
element.remove();
|
||||
if (Ebid != "0") {
|
||||
$(this).parent().find(".EB_Volume").val();
|
||||
instance.deleted_EBs.push(Number(Ebid));
|
||||
var TotalVolume = Number(EBelement.find(".EB_Volume").html());
|
||||
TotalVolume -= Number(element.find(".EBItem_Volume").val());
|
||||
EBelement.find(".EB_Volume").text(TotalVolume);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
element.find(".EBItem_Volume").blur(function () {
|
||||
var TotalVolume = 0;
|
||||
if (element.find(".hf_EBItemId").val() == 0) {
|
||||
MessageHelper.Instance().showError("please select EB Item", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
return false;
|
||||
}
|
||||
var checkingInvoiceItemQty = true;
|
||||
$(".InvoiceItems").find(".item-row").each(function () {
|
||||
if ($(this).children().length > 0) {
|
||||
if ($(this).find(".selectedItemId").val() == element.find(".hf_EBItemId").val()) {
|
||||
if ($(this).find(".selectedItemId").val() != "" && $(this).find(".selectedItemId").val() != "0" && $(this).find(".prodQuantity").val() > 0) {
|
||||
var invoiceQty = Number($(this).find(".prodQuantity").val());
|
||||
if (checkingInvoiceItemQty)
|
||||
checkingInvoiceItemQty = instance.checkingInvoiceItemQuantitywithEBItemQuantity(invoiceQty, $(this).find(".selectedItemId").val());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if (!checkingInvoiceItemQty) {
|
||||
if ($(".hdn_invoiceid").val() != 0)
|
||||
MessageHelper.Instance().showError("EB Volume must be less than or equal to invoiced Quantity", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
else
|
||||
MessageHelper.Instance().showError("Please Adjust the EB Volumes", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
element.find(".EBItem_Volume").val(0);
|
||||
return false;
|
||||
}
|
||||
EBelement.find(".EB-Itemrow").each(function () {
|
||||
if ($(this).find(".EBItem_Volume").val() != 0 && $(this).find(".EBItem_Volume").val() != undefined) {
|
||||
TotalVolume += Number($(this).find(".EBItem_Volume").val());
|
||||
}
|
||||
});
|
||||
EBelement.find(".EB_Volume").text(TotalVolume);
|
||||
});
|
||||
}
|
||||
checkingInvoiceItemQuantitywithEBItemQuantity(invoiceItemQty, ItemId) {
|
||||
var EBItemQuantity = 0;
|
||||
$(".EB-row").each(function () {
|
||||
if ($(this).find(".hf_EBId").val() != undefined || $(this).find(".hf_EBId").val() != -1) {
|
||||
$(this).find(".EB-Itemrow").each(function () {
|
||||
if ($(this).find(".hf_EBItemId").val() != undefined && $(this).find(".hf_EBItemId").val() == ItemId) {
|
||||
EBItemQuantity += Number($(this).find(".EBItem_Volume").val());
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if (EBItemQuantity > invoiceItemQty) {
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
loadEBs() {
|
||||
var instance = this;
|
||||
$('.addedEB-row').remove();
|
||||
var url = "";
|
||||
if ($(".hdn_invoiceid").val() != 0)
|
||||
url = '/apis/v4/bizgaze/transact/invoices/GetOpportunityEBsByInvoiceId/InvoiceId/' + $(".hdn_invoiceid").val();
|
||||
else
|
||||
url = '/apis/v4/bizgaze/transact/invoices/GetEBsDetailsByOrderId/OrderId/' + Number($(".hdn_orderid").val());
|
||||
Bizgaze.Apps.Transact.Managers.InvoiceManager.Instance().loadEbs(url).then(function (response) {
|
||||
var data = response;
|
||||
if (data.result.length > 0) {
|
||||
var EbsList = instance.EBsgroupByEbContactId(data.result, 'EBContactId');
|
||||
Object.keys(EbsList).forEach(function (k) {
|
||||
var Ebdata = EbsList[k];
|
||||
var EBItemList = new Array();
|
||||
for (var i = 0; i < Ebdata.length; i++) {
|
||||
EBItemList.push({
|
||||
EBId: Number(Ebdata[i].EBId),
|
||||
ItemId: Number(Ebdata[i].ItemId),
|
||||
Volume: Number(Ebdata[i].Volume),
|
||||
ItemName: Ebdata[i].ItemName,
|
||||
SKU: Ebdata[i].SKU
|
||||
});
|
||||
}
|
||||
instance.addEBRow(Ebdata[0].OrderId, Ebdata[0].EBId, Ebdata[0].EBContactId, Ebdata[0].EBName, Ebdata[0].Volume, Ebdata[0].InvoiceId, Ebdata[0].FillType, Ebdata[0].Notes, EBItemList);
|
||||
});
|
||||
}
|
||||
else {
|
||||
instance.addEBRow(0, 0, 0, "", 0.0, 0, 1, "", null);
|
||||
}
|
||||
}, function (response) {
|
||||
Unibase.Platform.Forms.Components.FormViewer.Instance().showError(response.responseText);
|
||||
});
|
||||
}
|
||||
EBsgroupByEbContactId(objectArray, property) {
|
||||
return objectArray.reduce((acc, obj) => {
|
||||
const key = obj[property] + '-' + obj["FillType"];
|
||||
if (!acc[key]) {
|
||||
acc[key] = [];
|
||||
}
|
||||
acc[key].push(obj);
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
getEBs() {
|
||||
var instance = this;
|
||||
var checkingInvoiceItemQty = true;
|
||||
$(".InvoiceItems").find(".item-row").each(function () {
|
||||
if ($(this).find(".selectedInvoiceItemId").val() != undefined) {
|
||||
if ($(this).find(".selectedItemId").val() != "" && $(this).find(".selectedItemId").val() != "0" && $(this).find(".prodQuantity").val() > 0) {
|
||||
var invoiceQty = Number($(this).find(".prodQuantity").val());
|
||||
if (checkingInvoiceItemQty)
|
||||
checkingInvoiceItemQty = instance.checkingInvoiceItemQuantitywithEBItemQuantity(invoiceQty, $(this).find(".selectedItemId").val());
|
||||
}
|
||||
}
|
||||
});
|
||||
if (!checkingInvoiceItemQty) {
|
||||
if ($(".hdn_invoiceid").val() != 0)
|
||||
MessageHelper.Instance().showError("EB Volume must be less than or equal to invoiced Quantity", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
else
|
||||
MessageHelper.Instance().showError("EB volume (EB Info section) cannot be more than Total volume", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
return;
|
||||
}
|
||||
var EBList = new Array();
|
||||
$(".EB-row").each(function () {
|
||||
if ($(this).find(".hf_EBId").val() != undefined) {
|
||||
if ($(this).find(".hf_EBId").val() != "" && $(this).find(".hf_EBId").val() != "0") {
|
||||
var OrderId = Number($(this).find("hfOrderEBId").val());
|
||||
var EBContactId = Number($(this).find(".hf_EBId").val());
|
||||
var FillType = Number($(this).find('#cmbFillType').val());
|
||||
var Notes = $(this).find('.EBDesc').val();
|
||||
if (OrderId == null)
|
||||
OrderId = 0;
|
||||
if ($(this).find(".hf_EBId").val() != -1) {
|
||||
$(this).find(".EB-Itemrow").each(function () {
|
||||
if ($(this).find(".hf_EBItemId").val() != undefined && $(this).find(".hf_EBItemId").val() != 0) {
|
||||
EBList.push({
|
||||
OrderId: isNaN(OrderId) ? 0 : OrderId,
|
||||
EBId: Number($(this).find(".hf_InvEBId").val()),
|
||||
EBContactId: Number(EBContactId),
|
||||
Volume: Number($(this).find(".EBItem_Volume").val()),
|
||||
InvoiceId: 0,
|
||||
ItemId: Number($(this).find(".hf_EBItemId").val()),
|
||||
FillType: FillType,
|
||||
Notes: Notes,
|
||||
DeletedEbs: []
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
EBList.push({
|
||||
OrderId: isNaN(OrderId) ? 0 : OrderId,
|
||||
EBId: isNaN(Number($(this).find(".hf_InvEBId").val())) ? 0 : Number($(this).find(".hf_InvEBId").val()),
|
||||
EBContactId: EBContactId,
|
||||
Volume: 0,
|
||||
InvoiceId: 0,
|
||||
ItemId: 0,
|
||||
FillType: FillType,
|
||||
Notes: Notes,
|
||||
DeletedEbs: []
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
if ($('.section_Ebs').is(":visible") && EBList.length == 0) {
|
||||
MessageHelper.Instance().showError("EB information is mandatory.", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
return false;
|
||||
}
|
||||
else if (instance.deleted_EBs.length > 0) {
|
||||
EBList[0].DeletedEbs = instance.deleted_EBs;
|
||||
}
|
||||
return EBList;
|
||||
}
|
||||
loadItemAutoComplete(element, selectitemids, hfSelectedEBItemId) {
|
||||
let userinfo = Unibase.Platform.Membership.Infos.Identity.getCurrentUser();
|
||||
let sessionid = userinfo.sessionId;
|
||||
let postData = null;
|
||||
var selecteditems = selectitemids.split(',');
|
||||
var ids = [];
|
||||
for (var i = 0; i <= Controls.InvoiceItem.instance.itemIds.length; i++) {
|
||||
let index = Controls.InvoiceItem.instance.itemIds.findIndex(x => x == selecteditems[i]);
|
||||
if (index == -1 && Controls.InvoiceItem.instance.itemIds[i] != null) {
|
||||
ids.push(Controls.InvoiceItem.instance.itemIds[i]);
|
||||
}
|
||||
}
|
||||
element.find(".txt_EBItemName").select2({
|
||||
placeholder: "Select",
|
||||
tags: false,
|
||||
allowClear: true,
|
||||
theme: "default select2ErrorClass w-100",
|
||||
data: [],
|
||||
ajax: {
|
||||
url: function (request) {
|
||||
let reqUrl = _appsettings.server_url() + '/apis/v4/bizgaze/transact/items/getebitemsforinvoice';
|
||||
return reqUrl;
|
||||
},
|
||||
type: "POST",
|
||||
contentType: 'application/json',
|
||||
dataType: 'json',
|
||||
data: function (params) {
|
||||
let Term = params.term;
|
||||
sessionid = sessionid.replace('#', '');
|
||||
if (selectitemids == '') {
|
||||
ids = Controls.InvoiceItem.instance.itemIds;
|
||||
}
|
||||
postData = {
|
||||
LobId: Number($(".hfAutoCompleteId_lobid").val()),
|
||||
ItemIds: ids,
|
||||
term: Term,
|
||||
};
|
||||
return JSON.stringify(postData);
|
||||
},
|
||||
beforeSend: function (xhr) {
|
||||
if (userinfo !== undefined && userinfo !== null) {
|
||||
xhr.setRequestHeader("Authorization", "Basic " + userinfo.sessionId);
|
||||
xhr.setRequestHeader('geoposition', userinfo.latd + ':' + userinfo.lgId);
|
||||
}
|
||||
},
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: jQuery.map(JSON.parse(data.result), function (item) {
|
||||
return {
|
||||
id: item.Value,
|
||||
text: item.SelectText,
|
||||
addlInfo: item.addlData
|
||||
};
|
||||
})
|
||||
};
|
||||
},
|
||||
},
|
||||
}).on('select2:select', function (e) {
|
||||
var result = e.params.data;
|
||||
$(hfSelectedEBItemId).val(result.id);
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Eb();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Eb = Eb;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
File diff suppressed because one or more lines are too long
+13
File diff suppressed because one or more lines are too long
@@ -0,0 +1,41 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Eb_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Eb_Setting();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Eb_Setting = Eb_Setting;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"eb.setting.js","sourceRoot":"","sources":["eb.setting.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAqChB;AArCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAmCpB;IAnCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAiCxB;QAjCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA+BxB;YA/BD,WAAiB,QAAQ;gBACrB,MAAa,UAAU;oBACnB,eAAe;wBACX,OAAO,EAAE,CAAC;oBAEd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,yBAAyB,CAAC,SAAS;wBAC/B,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,UAAU,EAAE,CAAC;yBACpC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBA7BY,mBAAU,aA6BtB,CAAA;YACL,CAAC,EA/BgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA+BxB;QACL,CAAC,EAjCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAiCxB;IACL,CAAC,EAnCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAmCpB;AACL,CAAC,EArCS,OAAO,KAAP,OAAO,QAqChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.Eb_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,185 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class InvoiceAmount extends Unibase.Platform.Core.BaseComponent {
|
||||
init(formpropertyid, prop, callback) {
|
||||
var instance = InvoiceAmount.Instance();
|
||||
instance.loadControlSettings(prop.ControlJsonText, prop.FormPropertyId);
|
||||
instance.loadPropertySettings(prop.PropertySettings, prop.FormPropertyId);
|
||||
}
|
||||
loadControl(containerid, prop) {
|
||||
var html = "<div class='col-xs-2 text-right hidden'><strong><span id='grosstotal' class='text-primary'>0.00</span></strong></div><div class='row form-group'><div class='col-sm-6'><span class='pull-left'>Total Qty</span><span class='pull-right' id='totalinvoiceqty'>0.00</span></div><div class='col-sm-6'><span class='pull-left'>Sub Total</span><span class='pull-right' id='subtotal'>0.00</span></div></div> <div class='row form-group'><div class='col-sm-6'> <span class='pull-left'> Discount On Items</span><span class='pull-right' id='totalItemDiscount'>0.00</span></div> <div class='col-sm-6'> <span class='pull-left'>Tax</span><span class='pull-right' id='totalTax'>0.00</span></div></div> <div class='row col-sm-12 form-group hidden'><div class='col-sm-6'></div><div class='col-sm-4 pull-left col-xs-6'>TDS</div><div class='col-sm-2 col-xs-6'><span class='pull-right'>0.00</span></div></div> <div class=''><div class='netdiscount-row hidden'></div><div class='expense-row hidden'></div></div> <div class='row py-2'><div class='col-sm-6'><a id='addNetDiscount' class='btn btn-outline-primary mb-2' title='Add Discount'><span class='px-1'><i class='la la-plus'></i></span><span>Add Coupon</span></a><span> </span><a id='addExpense' class='btn btn-outline-primary mb-2' title='Add Expense'><span class='px-1'><i class='la la-plus'></i></span><span>Add Expense</span></a></div><div class='col-sm-4 col-xs-6 hidden'>Expenses</div><div class='col-sm-2 col-xs-6 hidden'><span class='pull-right'>0.00</span></div></div> <div class='row'><div class='col-sm-3 div_IsAutoAdjustment mt-30'><input type='checkbox' id='chk_AutoAdjustment' class='css-checkbox'><label for='chk_AutoAdjustment' class='css-label text-sm pa-10'>Adjustment</label></div><div class='col-sm-6 col-lg-5 div_AdjustmentAccount '><div class='floating-label-form-group-with-value'><label id='lbl_AdjustmentAccountId' for='lbl_AdjustmentAccountId'>Account Name<span class='span_AdjustmentAccountName text-danger'> *</span></label><div class='input-group'><select id='txt_AdjustmentAccountName' class='form-control text-control select2-hidden-accessible txt_Account' style='width: 100%;' data-placeholder='Select' data-label='Account Name' placeholder='Select'><option value='0'></option></select><input type='hidden' id='hf_AdjustmentAccountId' value='0'></div></div></div><div class='col-sm-3 col-lg-4 mt-20'><div class='col-sm-8 floating-label-form-group input-group pull-left'><input type='text' placeholder='0.00' id='txt_Adjustment' class='form-control floating-label-control text-center text-right' value='0.00' /></div><div class='pt-10 pull-right'><span class=' mt-10' id='span_Adjustment'>0.00</span></div></div></div><div class='row col-sm-12 divWalletAmountContainer hidden'><a id='txt_Wallet' title='Wallet Details' class='default pull-left' href='' data-toggle='modal' data-original-title='Wallet'><span class='pull-left' style='text-decoration:underline;color:cornflowerblue' id='btn_Wallet'>Wallet- <strong><small id='WalletAmount'></small></strong></span></a></div> <div class='col-sm-12 WalletItems mt-10 collapse' style='border: 1px;border-style:groove;'><div id='tbl_WalletItems' class='col-sm-12'></div></div>";
|
||||
$("#" + containerid).html(html);
|
||||
$('#txt_Adjustment').prop("disabled", false);
|
||||
$('#txt_Adjustment').keypress(function (event) {
|
||||
if ((event.which > 47 && event.which < 58) || (event.which == 46 || event.which == 8) || (event.which == 45)) {
|
||||
}
|
||||
else {
|
||||
event.preventDefault();
|
||||
}
|
||||
}).on('paste', function (event) {
|
||||
event.preventDefault();
|
||||
});
|
||||
$('#txt_Adjustment').blur(function () {
|
||||
if ($('#chk_AutoAdjustment').prop("checked") == false) {
|
||||
$('.hdn_adjustment').val($('#txt_Adjustment').val());
|
||||
if (Number($('#txt_Adjustment').val()) != 0) {
|
||||
$('.span_AdjustmentAccountName').removeClass('hidden');
|
||||
}
|
||||
else {
|
||||
$('.span_AdjustmentAccountName').addClass('hidden');
|
||||
}
|
||||
Controls.InvoiceItem.Instance().update_total();
|
||||
Controls.InvoiceItem.Instance().TotalAdjustment();
|
||||
}
|
||||
});
|
||||
var instance = this;
|
||||
instance.loadAccounts();
|
||||
$('#chk_AutoAdjustment').prop("checked", true);
|
||||
$(".hdn_autoadjustment").val("true");
|
||||
$('#txt_Adjustment').prop("disabled", true);
|
||||
$('#chk_AutoAdjustment').change(function () {
|
||||
if ($('#chk_AutoAdjustment').is(':checked')) {
|
||||
$('.span_AdjustmentAccountName').removeClass('hidden');
|
||||
$('#txt_Adjustment').prop("disabled", true);
|
||||
Controls.InvoiceItem.Instance().update_total();
|
||||
Controls.InvoiceItem.Instance().TotalAdjustment();
|
||||
$(".hdn_autoadjustment").val("true");
|
||||
}
|
||||
else {
|
||||
$("#txt_Adjustment").val(0);
|
||||
$("#txt_Adjustment").blur();
|
||||
$(".hdn_adjustment").val(0);
|
||||
$('.span_AdjustmentAccountName').addClass('hidden');
|
||||
$('#txt_Adjustment').prop("disabled", false);
|
||||
$(".hdn_autoadjustment").val("false");
|
||||
}
|
||||
});
|
||||
$("#addNetDiscount").off().click(function () {
|
||||
let lobid = $(".hfAutoCompleteId_lobid").val();
|
||||
if (lobid == undefined || lobid == "" || lobid == "0") {
|
||||
MessageHelper.Instance().showError("Please Select LoB", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
Controls.InvoiceItem.Instance().addNetDiscountRow();
|
||||
$(".netdiscount-row:last").find(".netdiscount-name").find("input:text").focus();
|
||||
}
|
||||
});
|
||||
$("#addExpense").off().click(function () {
|
||||
;
|
||||
let lobid = $(".hfAutoCompleteId_lobid").val();
|
||||
if (lobid == undefined || lobid == "" || lobid == "0") {
|
||||
MessageHelper.Instance().showError("Please Select LoB", $("#form-container-" + $("#hf_FormId").val()).find(".bizgaze_FormErrorMessages").attr('id'));
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
Controls.InvoiceItem.Instance().addExpenseRow(null, "", "", true);
|
||||
$(".expense-row:last").find(".expense-name").find("input:text").focus();
|
||||
}
|
||||
});
|
||||
if ($(".hdn_invoicetypeid").val() == "3" || $(".hdn_invoicetypeid").val() == "4" || $(".hdn_invoicetypeid").val() == "6" || $(".hdn_invoicetypeid").val() == "7") {
|
||||
$("#addNetDiscount").addClass("hidden");
|
||||
}
|
||||
}
|
||||
loadControlSettings(controlsettingjson, formpropertyid) {
|
||||
return null;
|
||||
}
|
||||
loadPropertySettings(propertysettings, formpropertyid) {
|
||||
if (propertysettings != null) {
|
||||
for (var i = 0; i < propertysettings.length; i++) {
|
||||
var data = propertysettings[i];
|
||||
if (data.ControlPropertyName == "MaxLength") {
|
||||
$("#txt_" + formpropertyid).attr("MaxLength", data.ControlPropertyValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
loadAccounts() {
|
||||
var instance = this;
|
||||
var url = _appsettings.server_url() + '/apis/v4/bizgaze/transact/ledgers/ledgerautocomplete';
|
||||
AutoCompleteHelper.getHelper().Create("#txt_AdjustmentAccountName", "#hf_AdjustmentAccountId", url, null);
|
||||
$("#txt_AdjustmentAccountName").on('select2:select', function (e) {
|
||||
instance.LedgerAccountChange();
|
||||
});
|
||||
}
|
||||
LedgerAccountChange() {
|
||||
var instance = this;
|
||||
var url = _appsettings.server_url() + '/apis/v4/bizgaze/transact/ledgers/ledgerautocomplete';
|
||||
AutoCompleteHelper.getHelper().Create("#txt_AdjustmentAccountName", "#hf_AdjustmentAccountId", url, function (response) {
|
||||
debugger;
|
||||
var accountId = 0;
|
||||
var accountName = "";
|
||||
var controlId = "";
|
||||
var hiddenFieldControlId = "";
|
||||
accountId = Number(response.id);
|
||||
accountName = response.text;
|
||||
controlId = "#txt_AdjustmentAccountName";
|
||||
hiddenFieldControlId = "#hf_AdjustmentAccountId";
|
||||
if (accountId == 0)
|
||||
accountName = "Select Account";
|
||||
if (accountId == 1 || accountId == -1)
|
||||
accountName = "Create New";
|
||||
if (accountName == "Create New") {
|
||||
$("#txt_AdjustmentAccountName").val(null).trigger("change");
|
||||
var FormUniqueId = "Bizgaze_Extension_Transact_Ledgers_App_Ledgers_CreateForm";
|
||||
var AppConfigurationUnique = "Bizgaze_Extension_Transact_Ledgers_AppConfiguration_CreateLedgers";
|
||||
Unibase.Platform.Forms.Managers.FormManager.Instance().getFormbyUniqueId(FormUniqueId).then(function (response) {
|
||||
var obj = {
|
||||
controlid: controlId,
|
||||
hiddenid: hiddenFieldControlId
|
||||
};
|
||||
var successobj = {
|
||||
CallBack: function (id, obj) {
|
||||
Bizgaze.Apps.Transact.Managers.LedgerManager.Instance().getLedgerById(id).then(function (response) {
|
||||
var createdLedger = new Option(response.result.LedgerName, response.result.LedgerId, true);
|
||||
$(obj.controlid + " option").remove();
|
||||
$(obj.controlid).append(createdLedger).trigger('change');
|
||||
$(obj.hiddenid).val(response.result.LedgerId);
|
||||
});
|
||||
},
|
||||
Parameters: obj,
|
||||
};
|
||||
var formviewerObj = {
|
||||
FormId: response.result.FormId,
|
||||
AppConfigurationId: 0,
|
||||
Pk_Value: 0,
|
||||
PortletWidgetId: 0,
|
||||
OnSuccess: successobj,
|
||||
OnFail: null,
|
||||
OnLoad: null,
|
||||
};
|
||||
instance.fileCacheHelper.loadJsFile("apps/transact/managers/ledgers/ledgermanager.js", function () {
|
||||
instance.fileCacheHelper.loadJsFile("platform/forms/components/formviewer/formviewer.js", function () {
|
||||
Unibase.Platform.Forms.Components.FormViewer.instance.init(formviewerObj);
|
||||
setTimeout(function () {
|
||||
$("#btn_CloseForm_" + response.result.FormId).click(function () {
|
||||
$("#txt_AdjustmentAccountName").val(null).trigger("change");
|
||||
});
|
||||
}, 1000);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new InvoiceAmount();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.InvoiceAmount = InvoiceAmount;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,40 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class InvoiceAmount_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new InvoiceAmount_Setting();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Controls.InvoiceAmount_Setting = InvoiceAmount_Setting;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"invoiceamount.setting.js","sourceRoot":"","sources":["invoiceamount.setting.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAsChB;AAtCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAoCpB;IApCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAkCxB;QAlCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CAgCxB;YAhCD,WAAiB,QAAQ;gBACrB,MAAa,qBAAqB;oBAC9B,eAAe;wBACX,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,yBAAyB,CAAC,SAAS;wBAC/B,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBAID,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAqB,EAAE,CAAC;wBACjD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBAEJ;gBA9BY,8BAAqB,wBA8BjC,CAAA;YACL,CAAC,EAhCgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QAgCxB;QACL,CAAC,EAlCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAkCxB;IACL,CAAC,EApCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAoCpB;AACL,CAAC,EAtCS,OAAO,KAAP,OAAO,QAsChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.InvoiceAmount_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,41 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class InvoiceItem_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new InvoiceItem_Setting();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.InvoiceItem_Setting = InvoiceItem_Setting;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"invoiceitem.setting.js","sourceRoot":"","sources":["invoiceitem.setting.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAoChB;AApCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAkCpB;IAlCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAgCxB;QAhCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA8BxB;YA9BD,WAAiB,QAAQ;gBACrB,MAAa,mBAAmB;oBAC5B,eAAe;wBACX,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,yBAAyB,CAAC,SAAS;wBAC/B,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAC;yBAC7C;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBA5BY,4BAAmB,sBA4B/B,CAAA;YACL,CAAC,EA9BgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA8BxB;QACL,CAAC,EAhCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAgCxB;IACL,CAAC,EAlCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAkCpB;AACL,CAAC,EApCS,OAAO,KAAP,OAAO,QAoChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.InvoiceItem_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
@@ -0,0 +1,606 @@
|
||||
/* Item Cart Styles*/
|
||||
|
||||
.pos-modal-body {
|
||||
padding: 20px 20px 20px 10px;
|
||||
}
|
||||
|
||||
#pos_details {
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.products-container, .items-container {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.pos-modal-body .section_Items .row, .pos-modal-body .section_CartItems .row {
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.pos-modal-body .section_Items .divCustomProperties, .pos-modal-body .section_CartItems .divCustomProperties {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.products-container-body {
|
||||
padding: 0px 15px 0px 15px;
|
||||
}
|
||||
|
||||
.products-container-data .product-info {
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
border: 2px solid #fff;
|
||||
box-shadow: 0 2px 3px rgb(0 0 0 / 5%);
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.products-container-data .product-info .product-img-wrapper {
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.products-container-data .product-info .product-img {
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.products-container-data .product-info .group-name {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #0d1136;
|
||||
text-align: center;
|
||||
padding: 0px 10px 10px;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.products-container .items-container {
|
||||
max-height: 400px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.products-container .items-container .item-data {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
font-family: inherit;
|
||||
border-radius: 6px;
|
||||
border: 2px solid #fff;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 3px rgb(0 0 0 / 5%);
|
||||
}
|
||||
|
||||
.items-container .item-data .item-offer-msg {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
top: 2px;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-img-wrapper {
|
||||
height: 100px;
|
||||
padding: 3px;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-details-wrapper {
|
||||
padding: 5px 10px 5px;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-name {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #0d1136;
|
||||
margin: 0px 0px 5px;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-meta {
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.items-container .item-data .item-price {
|
||||
word-break: break-all;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #0d1136;
|
||||
}
|
||||
|
||||
.items-container .item-data .cart-counter {
|
||||
display: flex;
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
border-radius: 200px;
|
||||
-webkit-box-pack: justify;
|
||||
justify-content: space-between;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
width: 100px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.items-container .item-data .cart-counter .control-btn {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
color: white;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.items-container .item-data .cart-counter .control-btn:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.items-container .cart-counter .item-quantity {
|
||||
max-width: 25px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cart-counter .item-quantity::-webkit-inner-spin-button, .cart-counter .item-quantity::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.cart-counter .item-quantity {
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
.products-container .owl-nav button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: flex !important;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
background-color: white !important;
|
||||
color: #000 !important;
|
||||
box-shadow: rgb(0 0 0 / 16%) 0px 3px 6px;
|
||||
outline: 0px;
|
||||
padding: 0px !important;
|
||||
border: 0px !important;
|
||||
border-radius: 50% !important;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin: -15px 0px 0px 0px !important;
|
||||
font-size: 22px !important;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.products-container .owl-nav .disabled {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.products-container .owl-prev {
|
||||
left: -15px;
|
||||
}
|
||||
|
||||
.products-container .owl-next {
|
||||
right: -15px;
|
||||
}
|
||||
|
||||
.cart-container {
|
||||
height: calc(100vh - 144.8px);
|
||||
padding: 0px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.cart-container .item-left-details, .cart-container .item-right-details {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.cart-container .cart-header .cart-quantity {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #0d1136;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cart-container .cart-header .cart-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.cart-container .cart-header .item-quantity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid #000;
|
||||
border-radius: 50%;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
line-height: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* .cart-container .cart-body {
|
||||
height: calc(100% - 122px);
|
||||
}*/
|
||||
|
||||
.cart-container .cart-footer {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info {
|
||||
position: relative;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
padding: 12px 10px;
|
||||
border-bottom: 1px solid #eee7e7;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-counter {
|
||||
display: flex;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
border-radius: 200px;
|
||||
-webkit-box-pack: justify;
|
||||
justify-content: space-between;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
width: 75px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-counter .control-btn {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
background-color: transparent;
|
||||
color: #77798c;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
padding: 5px;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #77798c;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-counter .item-quantity {
|
||||
width: 100%;
|
||||
border: 0px;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-item-img {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
object-fit: cover;
|
||||
margin: 0px 5px;
|
||||
outline: 1px solid #b0b1b7;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-item-details {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0px 5px;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-item-details .item-name {
|
||||
color: #0d1136;
|
||||
margin-bottom: 7px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-item-details .item-price {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-item-details .item-weight {
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
color: #77798c;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .total-accessible-price {
|
||||
margin: 0px 15px 0px 5px;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .item-quantity:focus-visible, .cart-container .cart-item-info .control-btn:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.cart-container .cart-item-info .cart-counter .item-quantity {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.cart-container .cart-checkout-btn {
|
||||
height: 48px;
|
||||
width: calc(100% - 20px);
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
justify-content: space-between;
|
||||
padding: 0px;
|
||||
border-radius: 48px;
|
||||
box-shadow: rgb(0 0 0 / 16%) 0px 3px 6px;
|
||||
border: 0px;
|
||||
outline: 0px;
|
||||
cursor: pointer;
|
||||
margin: 12px 10px;
|
||||
}
|
||||
|
||||
.cart-container .cart-checkout-btn a {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
justify-content: space-between;
|
||||
padding-left: 30px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.cart-container .cart-checkout-btn .total-price-box {
|
||||
width: auto;
|
||||
height: 44px;
|
||||
padding: 0px 30px;
|
||||
overflow: hidden;
|
||||
border-radius: 28px;
|
||||
display: inline-flex;
|
||||
-webkit-box-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
justify-content: center;
|
||||
background-color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.cart-container .item-remove-btn {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 10px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
outline: 0px;
|
||||
cursor: pointer;
|
||||
color: #f83f37;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.btn.btn-icon.btn-icon-style-3.item-remove-btn::before {
|
||||
background-color: #f83f37;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.section-products-items .item-price:before, .cart-container .total-accessible-price:before, .cart-checkout-btn .total-price-box:before, .bill-details-list li .detail-price:before, .total-pay-price-wrap .total-pay-price:before {
|
||||
content: "\20B9";
|
||||
}
|
||||
|
||||
.section-products-items .items-container .items-data {
|
||||
display: grid;
|
||||
grid-gap: 20px;
|
||||
grid-template-columns: repeat(1, minmax(180px, 1fr));
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.section-products-items .items-container .items-data {
|
||||
grid-template-columns: repeat(1, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.section-products-items .items-container .items-data {
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.section-products-items .items-container .items-data {
|
||||
grid-template-columns: repeat(2, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.section-products-items .items-container .items-data {
|
||||
grid-template-columns: repeat(3, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
.section-products-items .items-container .items-data {
|
||||
grid-template-columns: repeat(4, minmax(180px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
/* End-Item Cart Styles*/
|
||||
|
||||
/*Checkout Styles*/
|
||||
|
||||
.section_PaymentInformation {
|
||||
flex-grow: 2;
|
||||
}
|
||||
|
||||
.section_PaymentInformation .pos-payment-modes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10px;
|
||||
background-color: #ECF1F7;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pos-payment-modes .type-control {
|
||||
font-weight: 500;
|
||||
color: #000 !important;
|
||||
font-size: 18px;
|
||||
border-radius: 0px;
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
.pos-payment-modes .type-control:hover, .pos-payment-modes .type-control.active {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.bill-details {
|
||||
padding: 5px 10px 5px 10px;
|
||||
border-top: 1px solid #DADDE1;
|
||||
border-bottom: 1px solid #DADDE1;
|
||||
}
|
||||
|
||||
.total-pay-price-wrap {
|
||||
padding: 10px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.bill-details .bill-details-list li, .cart-container .total-pay-price-wrap {
|
||||
color: #000;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#divSectionProperties_AddItems {
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
bottom: 20px;
|
||||
}
|
||||
|
||||
.cart-container .apply-coupon-link {
|
||||
color: #002F86;
|
||||
text-decoration: underline;
|
||||
padding-bottom: 5px;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cart-container .coupon-input-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cart-container .coupon-input-wrap .coupon-input {
|
||||
border: 1px dashed #ced4da !important;
|
||||
margin: 5px 0px;
|
||||
border-radius: 0.25rem !important;
|
||||
padding-right: 55px !important;
|
||||
}
|
||||
|
||||
.cart-container .coupon-input-wrap .coupon-input:focus {
|
||||
box-shadow: 0 0 0 0.1rem rgb(0 123 255 / 25%);
|
||||
}
|
||||
|
||||
.cart-container .coupon-input-wrap .coupon-code-apply {
|
||||
position: absolute;
|
||||
right: 7px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #8d9195;
|
||||
}
|
||||
|
||||
.item-search-wrap {
|
||||
position: relative;
|
||||
max-width: 500px;
|
||||
margin: 0 auto 10px auto;
|
||||
}
|
||||
|
||||
.item-search-wrap #txtSearchItem {
|
||||
border-radius: 6px !important;
|
||||
border-bottom: none !important;
|
||||
box-shadow: 0 2px 3px rgb(0 0 0 / 5%);
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.item-search-wrap .item-search-icon {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.item-search-wrap #txtSearchItem:focus, .item-search-wrap #txtSearchItem:active, .item-search-wrap #txtSearchItem:focus-visible {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
/*Keyboard Styles*/
|
||||
|
||||
#KioskBoard-VirtualKeyboard {
|
||||
background: #fff !important;
|
||||
width: 73% !important;
|
||||
left: 5px !important;
|
||||
margin: unset !important;
|
||||
padding: 0px 10px 3px 10px !important;
|
||||
}
|
||||
|
||||
#KioskBoard-VirtualKeyboard .kioskboard-row span[class^=kioskboard-key] {
|
||||
background: #f5f5f5 !important;
|
||||
color: #000 !important;
|
||||
margin: 8px 8px 5px !important;
|
||||
}
|
||||
|
||||
#KioskBoard-VirtualKeyboard .kioskboard-row-top {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
#KioskBoard-VirtualKeyboard .kioskboard-row-bottom {
|
||||
padding-top: 0px !important;
|
||||
margin: 3px 0px !important;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+68
File diff suppressed because one or more lines are too long
@@ -0,0 +1,41 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Transact;
|
||||
(function (Transact) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Pos_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Pos_Setting();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Pos_Setting = Pos_Setting;
|
||||
})(Controls = Transact.Controls || (Transact.Controls = {}));
|
||||
})(Transact = Apps.Transact || (Apps.Transact = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"pos.setting.js","sourceRoot":"","sources":["pos.setting.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAqChB;AArCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAmCpB;IAnCD,WAAiB,IAAI;QACjB,IAAiB,QAAQ,CAiCxB;QAjCD,WAAiB,QAAQ;YACrB,IAAiB,QAAQ,CA+BxB;YA/BD,WAAiB,QAAQ;gBACrB,MAAa,WAAW;oBACpB,eAAe;wBACX,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,yBAAyB,CAAC,SAAS;wBAC/B,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBAEd,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;yBACrC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBA7BY,oBAAW,cA6BvB,CAAA;YACL,CAAC,EA/BgB,QAAQ,GAAR,iBAAQ,KAAR,iBAAQ,QA+BxB;QACL,CAAC,EAjCgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QAiCxB;IACL,CAAC,EAnCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAmCpB;AACL,CAAC,EArCS,OAAO,KAAP,OAAO,QAqChB"}
|
||||
+1
@@ -0,0 +1 @@
|
||||
var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return""}SaveControlData(){return""}loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.Pos_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user